title Module from library BASE_2 : FILEIO name ('FILEIO') maclib baselib.lib ; Entry point for the following disk I/O functions : ; Read and write a sequential or random record from disk ; Copyright (C) Werner Cirsovius ; Hohe Weide 44 ; D-20253 Hamburg ; Tel.: +49-40-4223247 ; Version 3.0 October 1988 ; ENTRY Reg pair points to FCB ; Accu holds BDOS function ; EXIT On normal return carry is reset ; On error carry will be set ; Accu holds content of reg H entry @filio extrn @BDOS @filio: push hl call @BDOS ; Execute function or a ; Fix for error ld a,h ; Get extended error pop hl ret z scf ret end