]> git.sur5r.net Git - cc65/blob - libsrc/runtime/enter.s
This commit was generated by cvs2svn to compensate for changes in r2,
[cc65] / libsrc / runtime / enter.s
1 ;
2 ; Ullrich von Bassewitz, 06.08.1998
3 ;
4 ; CC65 runtime: function prologue
5 ;
6
7         .export         enter
8         .importzp       sp
9
10 enter:  tya                     ; get arg size
11         ldy     sp
12         bne     L1
13         dec     sp+1
14 L1:     dec     sp
15         ldy     #0
16         sta     (sp),y          ; Store the arg count
17         rts
18