Commodore 128 Programmer's Reference Manual page 427

Hide thumbs Also See for 128:
Table of Contents

Advertisement

THE COMMODORE 128 OPERATING SYSTEM
417
EXAMPLE:
n
sei
JSR $FF8A
;restore Kernal indirects
f '
CLI
i |
RESTOR restores the default values of all the Kernal indirect vectors from
' !
the Kernal ROM list. It does not affect any other vectors, such as those used by the
Editor (see CINT) and BASIC. Because it is possible for an interrupt (IRQ or NMI)
P
to occur during the updating of the interrupt indirect vectors, you should disable
; i
interrupts prior to calling RESTOR. See also the VECTOR call.
! |
5. $FF8D VECTOR ;init or copy indirects
H
n
PREPARATION:
Registers:
Memory:
Rags:
Calls:
RESULTS:
Registers:
Memory:
Flags:
EXAMPLE:
LDX #save_Jo
LDY #save_hi
SEC
JSR $FF87
.X = adr (low) of user list
. Y = adr (high) of user list
system map
.C = 0 —► load Kernal vectors
.C = 1 —> copy Kernal vectors
none
.A used
.Y used
as per call
none
;copv indirects to "save"
VECTOR reads or writes the Kernal RAM indirect vectors. Calling VEC-
fn
TOR with the carry status set stores the current contents of the indirect vectors to
|
the RAM address passed in the .X and .Y registers (to the current RAM bank).
Calling VECTOR with the carry status clear updates the Kernal indirect vectors
from the user list passed in the .X and .Y registers (from the current RAM bank).
Interrupts (IRQ and NMI) should be disabled when updating the indirects. See also
'
the RESTOR call.

Hide quick links:

Advertisement

Table of Contents
loading

Table of Contents