_tickcount -> tickcount
This commit is contained in:
@@ -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)
|
||||||
|
|||||||
@@ -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
|
||||||
|
|||||||
@@ -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
|
||||||
|
|||||||
@@ -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
|
||||||
|
|||||||
Reference in New Issue
Block a user