Commodore 128 Programmer's Reference Manual page 447

Hide thumbs Also See for 128:
Table of Contents

Advertisement

n
f
!
1 {
THE COMMODORE 128 OPERATING SYSTEM
437
!
I
; \
n
RESULTS:
Registers:
Memory:
Flags:
EXAMPLE:
LDA#0
TAX
TAY
JSR $FFDB
none
TIME ($A0) updated
none
;reset clock
;SETTIM
i i
! \
SETTIM sets the system software (jiffie) clock, which counts sixtieths (1/60)
^
of a second. The timer is incremented during system IRQ processing (see UDTIM),
| I
and reset at the 24-hour point. SETTIM disables IRQ's, updates the three-byte timer
' I
with the contents of .A, .X and .Y, and re-enables IRQ's.
\ !
32. $FFDE RDTIM ;read internal clock
n
PREPARATION:
Registers:
Memory:
Flags:
Calls:
RESULTS:
Registers:
Memory:
Flags:
EXAMPLE:
JSR $FFDE
none
system map
none
none
.A = low byte
.X = middle byte
.Y = high byte
none
none
;RDTIM
RDTIM reads the system software (jiffie) clock, which counts sixtieths (1/60)
of a second. The timer is incremented during system IRQ processing (see UDTIM),
and reset at the 24-hour point. RDTIM disables IRQ's, loads .A, .X and .Y with the
contents of the 3-byte timer, and re-enables IRQ's.
33. $FFE1 STOP ;scan STOP key
j I
PREPARATION:
Registers:
Memory:
Flags:
Calls:
none
system map
none
none

Hide quick links:

Advertisement

Table of Contents
loading

Table of Contents