Commodore 128 Programmer's Reference Manual page 458

Hide thumbs Also See for 128:
Table of Contents

Advertisement

448
COMMODORE 128
6. $FF56 PHOENIX ;init function cartridges
PREPARATION:
Registers:
Memory:
Flags:
Calls:
RESULTS:
Registers:
Memory:
Flags:
E X A M P LE :
JSR $FF56
The C l 28 Kernal initialization routine POLL creates a Physical Address
Table (PAT) containing the ID's of all installed function ROM cartridges. PHOENIX
calls each logged cartridge's cold-start entry in the order: external low/high, and
internal low/high. After calling the cartridges (if any), PHOENIX calls the Kemal
BOOT routine to look for an auto-boot disk in drive 0 of device 8 (see BOOT CALL).
Control may or may not be returned to the user. PHOENIX is called by BASIC at
the conclusion of its cold initialization.
7. $FF59 LKUPLA ;search tables for given LA
$FF5C LKUPSA ;search tables for given SA
PREPARATION:
Registers:
Memory:
Flags:
Calls:
RESULTS:
Registers:
M em o ry :
Flags:
none
cartridge map
none
none
.A used
.X used
.Y used
changed as per command
none
;PHOENIX
.A = LA (logical file number)
if LKUPLA
.Y = SA (secondary address)
if LKUPSA
system map
none
none
.A = LA (only if found)
.X = FA (only if found)
.Y = SA (only if found)
none
.C = 0 if found
.C = 1 if not found

Hide quick links:

Advertisement

Table of Contents
loading

Table of Contents