]> git.sur5r.net Git - cc65/blob - libsrc/runtime/pushw.s
no TGI_ERR_NO_MEM or TGI_ERR_NO_IOCB anymore: replaced by TGI_ERR_NO_RES
[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
8         .import         pushax
9         .importzp       ptr1
10
11
12 pushw:  ldy     #1
13 pushwidx:
14         sta     ptr1
15         stx     ptr1+1
16         lda     (ptr1),y
17         tax
18         dey
19         lda     (ptr1),y
20         jmp     pushax
21