]> git.sur5r.net Git - cc65/blob - libsrc/plus4/krdtim.s
atari5200: name conio constructor 'initconio'
[cc65] / libsrc / plus4 / krdtim.s
1 ;
2 ; Ullrich von Bassewitz, 22.11.2002
3 ;
4 ; RDTIM replacement function
5 ;
6
7         .export         RDTIM
8
9         .include        "plus4.inc"
10
11 ; Read the clock from the zero page to avoid banking in the ROM
12
13 .proc   RDTIM
14         sei                             ; No interrupts
15         lda     TIME+2
16         ldx     TIME+1
17         ldy     TIME                    ; Read the time
18         cli                             ; Allow interrupts
19         rts                             ; Return to caller
20 .endproc
21
22