1
0
mirror of https://github.com/cc65/cc65.git synced 2024-12-27 15:29:46 +00:00

_tickcount -> tickcount

This commit is contained in:
mrdudz 2015-07-14 19:55:41 +02:00
parent 83391ab67c
commit ac27ed301a
4 changed files with 11 additions and 9 deletions

View File

@ -11,7 +11,7 @@ CRAM_PTR = $34 ;2
CHARCOLOR = $36
RVS = $37
BGCOLOR = $38
_tickcount = $39 ;4
tickcount = $39 ;4
screenrows = (224/8)
charsperline = (512/8)

View File

@ -6,15 +6,16 @@
.export _clock
.importzp sreg
;; .importzp tickcount
.proc _clock
lda _tickcount+3
lda tickcount+3
sta sreg+1
lda _tickcount+2
lda tickcount+2
sta sreg
ldx _tickcount+1
lda _tickcount
ldx tickcount+1
lda tickcount
rts
.endproc

View File

@ -174,13 +174,13 @@ _irq1:
phy
inc _tickcount
inc tickcount
bne @s1
inc _tickcount+1
inc tickcount+1
bne @s1
inc _tickcount+2
inc tickcount+2
bne @s1
inc _tickcount+3
inc tickcount+3
@s1:
; Acknowlege interrupt
ldaio VDC_CTRL

View File

@ -14,6 +14,7 @@ get_tv() is missing
some graphical petscii chars should get added to the charset
interruptor support in crt0 (and cfg) is missing
- clock() should be hooked to a VBL interrupt
conio lacks support for different screen sizes, which could be used with
different video modes