mirror of
https://github.com/cc65/cc65.git
synced 2024-10-01 00:57:11 +00:00
16 lines
318 B
ArmAsm
16 lines
318 B
ArmAsm
|
;
|
||
|
; this routine updates errno. do a JMP here right after calling
|
||
|
; CIOV. we expect status in Y.
|
||
|
; __retminus is a routine with returns AX with $FFFF
|
||
|
;
|
||
|
.include "errno.inc"
|
||
|
|
||
|
.export __do_oserror, __retminus
|
||
|
|
||
|
__do_oserror:
|
||
|
sty __oserror ; save os dependent error code
|
||
|
__retminus:
|
||
|
lda #$FF
|
||
|
tax ; return -1
|
||
|
rts
|