]> git.sur5r.net Git - cc65/commitdiff
_tickcount -> tickcount
authormrdudz <mrdudz@users.noreply.github.com>
Tue, 14 Jul 2015 17:55:41 +0000 (19:55 +0200)
committermrdudz <mrdudz@users.noreply.github.com>
Tue, 14 Jul 2015 17:55:41 +0000 (19:55 +0200)
asminc/pce.inc
libsrc/pce/clock.s
libsrc/pce/crt0.s
libsrc/pce/readme.txt

index 767f1a529da331523e55bab57f7f391e3e8b35e4..424dd8c365cfb518215bb1e4edc36a8a2240ce3d 100644 (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)
index 4271fdc61ecce448e6e20a92025119e9ea4baaa8..6f939f07806e0da536445897e0e922a38e1d433e 100644 (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
index e67039d4320eadd66bd54aabfabeaf39512a57a6..1a7a04e0bc0dc50ff6016e10033e12593fcc18e2 100644 (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
index 5b170b7f7e4fb5803aa33f734100928054dc384f..d071509137d2c648f11dbd7641e73a54e26bc61f 100644 (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