From ac27ed301aa36183825b98dc5c22635ad1e1bc9f Mon Sep 17 00:00:00 2001 From: mrdudz Date: Tue, 14 Jul 2015 19:55:41 +0200 Subject: [PATCH] _tickcount -> tickcount --- asminc/pce.inc | 2 +- libsrc/pce/clock.s | 9 +++++---- libsrc/pce/crt0.s | 8 ++++---- libsrc/pce/readme.txt | 1 + 4 files changed, 11 insertions(+), 9 deletions(-) diff --git a/asminc/pce.inc b/asminc/pce.inc index 767f1a529..424dd8c36 100644 --- a/asminc/pce.inc +++ b/asminc/pce.inc @@ -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) diff --git a/libsrc/pce/clock.s b/libsrc/pce/clock.s index 4271fdc61..6f939f078 100644 --- a/libsrc/pce/clock.s +++ b/libsrc/pce/clock.s @@ -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 diff --git a/libsrc/pce/crt0.s b/libsrc/pce/crt0.s index e67039d43..1a7a04e0b 100644 --- a/libsrc/pce/crt0.s +++ b/libsrc/pce/crt0.s @@ -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 diff --git a/libsrc/pce/readme.txt b/libsrc/pce/readme.txt index 5b170b7f7..d07150913 100644 --- a/libsrc/pce/readme.txt +++ b/libsrc/pce/readme.txt @@ -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 -- 2.39.5