1
0
mirror of https://github.com/cc65/cc65.git synced 2024-12-26 08:32:00 +00:00
cc65/libsrc/atari/do_oserr.s
cpg 94f7ce4978 fix comments
git-svn-id: svn://svn.cc65.org/cc65/trunk@4488 b7a2c559-68d2-44c3-8de9-860c34a00d81
2009-11-25 17:41:00 +00:00

18 lines
393 B
ArmAsm

;
; __do_oserror updates __oserror. Do a JMP here right after calling
; CIOV. It will return with AX set to -1 ($FFFF). It expects the CIO
; status in Y.
;
; __retminus is a routine whitch returns with AX set to -1 ($FFFF).
;
.include "errno.inc"
.export __do_oserror, __retminus
__do_oserror:
sty __oserror ; save os dependent error code
__retminus:
lda #$FF
tax ; return -1
rts