Home
Random
Watchlist
Settings
Log in
About CPCWiki - THE Amstrad CPC encyclopedia!
Disclaimers
Open main menu
Changes
Programming:An example to read a file byte-by-byte
99 bytes added
,
13:53, 21 June 2018
;; read a char from the file, character is returned in A register
.next_byte
call cas_in_char
jr
nc
c
,not_eof
;;due to Firmware description "...if the end of file was reached, then Carry and Zero are false."
jr
nz
z
,not_eof
;; could be end of file
← Older edit
HAL6128
205
edits