SETNAM
Set file name
Function | Address | Description |
---|---|---|
SETNAM | FFBD | Set file name |
This routine is used to set up the file name for the OPEN, SAVE, or LOAD routines.
The accumulator must be loaded with the length of the file name. The X and Y registers must be loaded with the address of the file name, in standard 6502 low-byte/high-byte format.
The address can be any valid memory address in the system where a string of characters for the file name is stored.
If no file name is desired, the accumulator must be set to 0, representing a zero file length. The X and Y registers can be set to any memory address in that case.
Example:
LDA#filenameEnd-filenameLength of filename
LDX#<filenameAddress of filename
LDY#>filename
JSRSETNAMSet filename
filenameEQUS"I/O"Filename
filenameEnd
Last modified October 19, 2021: Remove weighting so left index is now alphabetical (cbe7734)