]> git.sur5r.net Git - cc65/blob - libsrc/runtime/staxsp.s
Don't pass mode argument to open() from _fopen().
[cc65] / libsrc / runtime / staxsp.s
1 ;
2 ; Ullrich von Bassewitz, 31.08.1998
3 ;
4 ; CC65 runtime: Store ax at (sp),y
5 ;
6
7         .export         staxysp, stax0sp
8         .importzp       sp
9
10 stax0sp:
11         ldy     #0
12 staxysp:
13         sta     (sp),y
14         iny
15         pha
16         txa
17         sta     (sp),y
18         pla
19         rts
20