Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 4 additions & 2 deletions library/esxdos.bas
Original file line number Diff line number Diff line change
Expand Up @@ -135,6 +135,8 @@ Function FASTCALL ESXDosWrite(ByVal handle as Byte, _

Asm
;FASTCALL implies handle is already in A register
ld hl, EDOS_ERR_NR
ld (hl), 255 ; sets 255 = OK
pop de ; ret address
pop hl ; buffer address
pop bc ; bc <- nbytes
Expand Down Expand Up @@ -169,10 +171,10 @@ End Function
Function FASTCALL ESXDosRead(ByVal handle as Byte, _
ByVal buffer as UInteger, _
ByVal nbytes as UInteger) as Uinteger
poke EDOS_ERR_NR,255

Asm
;FASTCALL implies handle is already in A register
ld hl, EDOS_ERR_NR
ld (hl), 255 ; sets 255 = OK
pop de ; ret address
pop hl ; buffer address
pop bc ; bc <- nbytes
Expand Down