_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 CHARCOLOR = $36
RVS = $37 RVS = $37
BGCOLOR = $38 BGCOLOR = $38
_tickcount = $39 ;4 tickcount = $39 ;4
screenrows = (224/8) screenrows = (224/8)
charsperline = (512/8) charsperline = (512/8)

View File

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

View File

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

View File

@@ -14,6 +14,7 @@ get_tv() is missing
some graphical petscii chars should get added to the charset some graphical petscii chars should get added to the charset
interruptor support in crt0 (and cfg) is missing 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 conio lacks support for different screen sizes, which could be used with
different video modes different video modes