fix some errno related stuff, "make all" works again

This commit is contained in:
mrdudz
2022-08-28 22:09:44 +02:00
parent 2dabb65ee0
commit 54aff47513
7 changed files with 25 additions and 12 deletions

View File

@@ -1,7 +1,7 @@
;
; Ullrich von Bassewitz, 2004-05-13
;
; ___seterrno: Will set __errno to the value in A and return zero in A. Other
; ___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.
;
@@ -12,9 +12,9 @@
.proc ___seterrno
sta __errno
sta ___errno
lda #0
sta __errno+1
sta ___errno+1
rts
.endproc