Skip to content

Assembly Language FileIO Module

Curtis F Kaylor edited this page Nov 27, 2023 · 3 revisions

FileIO Module

This module contains high level file handling routines.


file_load_binary

Load binary file into main memory.
Input BC: Maximum Length
DE: Start Address
HL: String descriptor address
Output A: result code
BC: number of bytes actually read
DE: next destination address
Flags Set S if I/O error
Clobbered HL

file_load_paged

Load binary file into paged memory.
Input A: page
BC: maximum length
DE: start address
HL: string descriptor address
Output A: result code
BC: number of bytes actually read
DE: next destination address
H: destination page
Flags Set Z if llegal page
C if page overflow
S if I/O error
Clobbered AF', H
Clone this wiki locally