Open a logical file
Function AddressVectorDescription
OPEN FFC0031AOpen a logical file

This routine is used to OPEN a logical file. Once the logical file is set up, it can be used for input/output operations.

Most of the I/O routines call on this routine to create the logical files to operate on. No arguments need to be set up to use this routine, but both the SETLFS and SETNAM routines must be called before using this routine.

openFileEquivalent of Basic: OPEN 15,8,15,"I/O"
LDA#filenameEnd-filenameLength of filename
LDX#<filenameAddress of filename
JSRSETNAMSet filename
LDA#15Logical file number
LDX#8Device number, 8 = disk
LDY#15Secondary address
JSRSETLFSSetup logical file
JMPOPENOpen the logical file

Last modified October 19, 2021: Add Kernal vectors to call pages (6866932)