Commodore 128 Programmer's Reference Manual page 437

Hide thumbs Also See for 128:
Table of Contents

Advertisement

n
i
I
THE COMMODORE 128 OPERATING SYSTEM
427
n
II
operations. The device number range is 0 to 31 and is used to target I/O. The SA is
a command to be sent to the indicated device, usually to place it in a particular
I
mode. If the SA is not needed, the .Y register should pass $FF. SETLFS is often
1
used along with SETNAM and SETBNK calls prior to OPENs. See the Kernal
OPEN, LOAD and SAVE calls for examples.
H
21. $FFBD SETNAM ;set filename pointers
1
PREPARATION:
Registers:
Memory:
i
Flags:
Calls:
RESULTS:
Registers:
Memory:
Flags:
EXAMPLE:
See OPEN
.A = string length
.X = string adr low
. Y = string adr high
system map
none
SETBNK
none
FNLEN, FNADR updated
none
n
n
n
SETNAM sets up the filename or command string for higher-level Kernal I/O
calls such as OPEN, LOAD and SAVE. The string (filename or command) length is
passed in .A and updates FNLEN ($B7). The address of the string is passed in .X
(low) and .Y (high). See the companion call, SETBNK, which specifies in which
RAM bank the string is found. If there is no string, SETNAM should still be called
and a null ($00) length specified (the address does not matter). SETNAM is often
used along with SETBNK and SETLFS calls prior to OPENs. See the Kernal
OPEN, LOAD and SAVE calls for examples.
22. $FFC0 OPEN ;open logical file
PREPARATION:
Registers:
Memory:
Flags:
Calls:
none
system map
none
SETLFS, SETNAM, SETBNK

Hide quick links:

Advertisement

Table of Contents
loading

Table of Contents