Skip navbar

File 04_se-os.asm


Function summary
SEFileAppend
           open a file for appending if it exists
SEFileClose
           close a file
SEFileCreate
           create a file for writing or open a file for writing if it exists
SEFileLoad
           load a file from disk to memory
SEFileOpen
           open a file from disk
SEFileOpenExists
           open a file from disk for reading if it exists
SEFileRead
           read bytes from a file to memory
SEFileReadOne
           read one byte from a file to memory
SEFileRemove
           remove a file
SEFileRename
           rename a file or folder
SEFileSave
           save a file from memory to disk
SEFileWrite
           write bytes from memory to a file
SEFileWriteOne
           write one byte from memory to a file
SEFolderCreate
           create a folder
SEFolderOpen
           open a folder for reading
SEFolderRead
           read a folder entry
SEFolderRemove
           remove a folder
SEFolderSet
           set current working folder
SEGraphicsPaletteSet
           set the 64 palette registers (during vblank)
SEKeyboardFlushBuffer
           flush keyboard buffer
SEScreenClear
           clear the screen
SEScreenLowerPrintString
           print an ASCIIZ string to the lower display
SEScreenMode
           set the screen mode
SEScreenPrintCharacter
           print an ASCII character to the main display
SEScreenPrintString
           print an ASCIIZ string to the main display

Function detail

SEFileAppend

open a file for appending if it exists
Parameter:
IX - pointer to ASCIIZ file path
Throws:
sets carry flag on error

SEFileClose

close a file
Parameter:
A - file handle
Throws:
sets carry flag on error

SEFileCreate

create a file for writing or open a file for writing if it exists
Parameter:
IX - pointer to ASCIIZ file path
Throws:
sets carry flag on error

SEFileLoad

load a file from disk to memory
Parameter:
HL - destination address
Parameter:
IX - pointer to ASCIIZ file path
Throws:
sets carry flag on error

SEFileOpen

open a file from disk
Parameter:
IX - pointer to ASCIIZ file path
Returns:
file handle in A
Throws:
sets carry flag on error

SEFileOpenExists

open a file from disk for reading if it exists
Parameter:
IX - pointer to ASCIIZ file path
Returns:
file handle in A
Throws:
sets carry flag on error

SEFileRead

read bytes from a file to memory
Parameter:
A - file handle
Parameter:
BC - byte count
Parameter:
IX - destination in memory
Throws:
sets carry flag on error

SEFileReadOne

read one byte from a file to memory
Parameter:
A - file handle
Parameter:
IX - destination in memory
Throws:
sets carry flag on error

SEFileRemove

remove a file
Parameter:
IX - pointer to ASCIIZ file path
Throws:
sets carry flag on error

SEFileRename

rename a file or folder
Parameter:
DE - pointer to new ASCIIZ path
Parameter:
IX - pointer to old ASCIIZ path
Throws:
sets carry flag on error

SEFileSave

save a file from memory to disk
Parameter:
BC - byte count
Parameter:
HL - source address
Parameter:
IX - pointer to ASCIIZ file path
Throws:
sets carry flag on error

SEFileWrite

write bytes from memory to a file
Parameter:
A - file handle
Parameter:
BC - byte count
Parameter:
IX - source in memory
Throws:
sets carry flag on error

SEFileWriteOne

write one byte from memory to a file
Parameter:
A - file handle
Parameter:
IX - source in memory
Throws:
sets carry flag on error

SEFolderCreate

create a folder
Parameter:
IX - pointer to ASCIIZ folder path
Throws:
sets carry flag on error

SEFolderOpen

open a folder for reading
Parameter:
IX - pointer to ASCIIZ folder path
Returns:
folder handle in A
Throws:
sets carry flag on error

SEFolderRead

read a folder entry
Parameter:
A - folder handle
Parameter:
IX - destination memory address
Throws:
sets carry flag on error

SEFolderRemove

remove a folder
Parameter:
IX - pointer to ASCIIZ folder path
Throws:
sets carry flag on error

SEFolderSet

set current working folder
Parameter:
IX - pointer to ASCIIZ folder path
Throws:
sets carry flag on error

SEGraphicsPaletteSet

set the 64 palette registers (during vblank)
Parameter:
IX - pointer to 64 bytes of palette data

SEKeyboardFlushBuffer

flush keyboard buffer

SEScreenClear

clear the screen

SEScreenLowerPrintString

print an ASCIIZ string to the lower display
Parameter:
IX - pointer to ASCIIZ string

SEScreenMode

set the screen mode
Parameter:
A - mode (0 system, 1 user)

SEScreenPrintCharacter

print an ASCII character to the main display
Parameter:
A - ASCII code

SEScreenPrintString

print an ASCIIZ string to the main display
Parameter:
IX - pointer to ASCIIZ string


Skip navbar