mirror of
https://github.com/cc65/cc65.git
synced 2024-12-25 02:29:52 +00:00
23 lines
405 B
ArmAsm
23 lines
405 B
ArmAsm
;
|
|
; Ullrich von Bassewitz, 2004-05-13
|
|
;
|
|
; ___seterrno: Will set ___errno to the value in A and return zero in A. Other
|
|
; registers aren't changed. The function is C callable, but
|
|
; currently only called from asm code.
|
|
;
|
|
|
|
.include "errno.inc"
|
|
|
|
.code
|
|
|
|
.proc ___seterrno
|
|
|
|
sta ___errno
|
|
lda #0
|
|
sta ___errno+1
|
|
rts
|
|
|
|
.endproc
|
|
|
|
|