]> git.sur5r.net Git - cc65/blob - libsrc/runtime/land.s
Added mouse module from C64
[cc65] / libsrc / runtime / land.s
1 ;
2 ; Ullrich von Bassewitz, 06.08.1998
3 ;
4 ; CC65 runtime: and on longs
5 ;
6
7         .export         tosandeax
8         .import         addysp1
9         .importzp       sp, sreg, tmp1
10
11 tosandeax:
12         ldy     #0
13         and     (sp),y          ; byte 0
14         sta     tmp1
15         iny
16         txa
17         and     (sp),y          ; byte 1
18         tax
19         iny
20         lda     sreg
21         and     (sp),y          ; byte 2
22         sta     sreg
23         iny
24         lda     sreg+1
25         and     (sp),y          ; byte 3
26         sta     sreg+1
27
28         lda     tmp1
29         jmp     addysp1
30