]> git.sur5r.net Git - cc65/blob - libsrc/common/_seterrno.s
Removed (pretty inconsistently used) tab chars from source code base.
[cc65] / libsrc / common / _seterrno.s
1 ;
2 ; Ullrich von Bassewitz, 2004-05-13
3 ;
4 ; __seterrno: Will set __errno to the value in A and return zero in A. Other
5 ;             registers aren't changed. The function is C callable, but 
6 ;             currently only called from asm code.
7 ;
8
9         .include        "errno.inc"
10
11 .code
12
13 .proc   __seterrno
14
15         sta     __errno
16         lda     #0
17         sta     __errno+1
18         rts
19
20 .endproc
21
22