[img] ZX Spectrum machine code libraries
 MDFS::Info.Comp.Spectrum.Code.SpecIO Search  

Character I/O
input.asm
IOINPUT: Text line input. Variants allow: CAPS/lower cursor, Keypress click.
 
Equivalent code in Basic: lineedit
inpad.asm
IOINPUT: Text line input with padding characters.
 
Equivalent code in Basic: lineedit
textio.asm
IOINIT:  Initialise I/O by selecting screen for output.
IOWRCH:  Write a character to screen.
IORDCH:  Wait for keyboard character, allowing all symbol characters.
IOTEST:  Test for pending keypress.
rawio.asm
IOINIT:  Initialise I/O by selecting screen for output.
IOWRCH:  Write a character to screen.
IORDCH:  Wait for raw keyboard character.
IOTEST:  Test for pending keypress.
readln.asm
IOINPUT: Text line input, calls IORDCH in textio.asm or raw.asm.
ascii.asm
Spectrum text I/O with codes converted to standard ASCII.
IOINIT:  Initialise I/O by selecting screen for output.
IOWRCH:  Write a character to screen, allowing CHR$8-13,30.
IORDCH:  Wait for keyboard character, allowing all symbol characters.
IOTEST:  Test for pending keypress.
File I/O
fstape.asm
FSCAT:  Catalog tape. See picture.
FSLOAD:  Load file from tape.
FSSAVE:  Save file to tape.
fsfile.asm
FSCAT:  Catalog tape or microdrive.
FSLOAD:  Load file from tape or microdrive.
FSSAVE:  Save file to tape or microdrive.
FSERASE: Delete a file from microdrive.
FSDRIVE: Select drive/device.
Uses D:FILENAME filename syntax as per device.htm.
Graphics
zxplot.asm
GRMOVE:  MOVE X,Y using whole screen
GRDRAW:  DRAW X,Y using whole screen
GRPLOT:  PLOT X,Y using whole screen
Misc.
debug.asm
PRFLAGS:  Display Z80 flags
prnum.asm
PRDEC16:  Print BC in decimal
PRDEC8:  Print C in decimal
PRHEXA:  Print A in hex

Best viewed with Any Browser Valid HTML 4.0! Authored by J.G.Harston
Last update: 26-Dec-2023