]> git.sur5r.net Git - cc65/blob - libsrc/runtime/pushw.s
This commit was generated by cvs2svn to compensate for changes in r2,
[cc65] / libsrc / runtime / pushw.s
1 ;
2 ; Ullrich von Bassewitz, 31.08.1998
3 ;
4 ; CC65 runtime: Push word from stack
5 ;
6
7         .export         pushw, pushwidx
8         .import         pushax
9         .importzp       ptr1
10
11 pushwidx:
12         sty     ptr1
13         clc
14         adc     ptr1
15         bcc     pushw
16         inx
17 pushw:  sta     ptr1
18         stx     ptr1+1
19         ldy     #1
20         lda     (ptr1),y
21         tax
22         dey
23         lda     (ptr1),y
24         jmp     pushax
25