DiscInBloc

Read and write arbitrary blocs of raw bytes or text at a time, with the same speed than DISC_IN_DIRECT / DISC_OUT_DIRECT.

Compatible CubeMDos / ImpDos.

Source overview:

As for each Orgams module, select the behavior via inRom flag:

inRom = 0   ; Run the automated unit tests (might fail if reference files are missing)
inRom = 1   ; Auto-install in ROM.

Public routines:

io_read_bloc
; de: dest
; bc: size
; Warning: do not mix this routine with DISC_IN_CHAR. Call me with BC = 1 instead.
; NB: this routine should be changed to take HL instead of DE.

io_read_line  
; Read line until LF/NL (dos/unix compatible)
; de: dest   

io_write_bloc
; Warning: do not mix this routine with DISC_OUT_CHAR. Call me with BC = 1 instead.
; hl: source
; bc: size

io_write_line
; hl: Zero terminated string

io_write_header

See detailed interface in-source!
Sauf mention contraire, le contenu de cette page est protégé par la licence Creative Commons Attribution-ShareAlike 3.0 License