]> git.sur5r.net Git - cc65/blob - libsrc/runtime/pushw.s
Don't pass mode argument to open() from _fopen().
[cc65] / libsrc / runtime / pushw.s
1 ;
2 ; Ullrich von Bassewitz, 31.08.1998
3 ;
4 ; CC65 runtime: Fetch word indirect and push
5 ;
6
7         .export         pushw, pushwidx, pushptr1idx
8         .import         pushax
9         .importzp       ptr1
10
11
12 pushw:  ldy     #1
13 pushwidx:
14         sta     ptr1
15         stx     ptr1+1
16 pushptr1idx:
17         lda     (ptr1),y
18         tax
19         dey
20         lda     (ptr1),y
21         jmp     pushax
22