implemented SETTIM and RDTIM routines

This commit is contained in:
FeralChild64 committed 2019-08-28 17:45:40 +02:00
1 parent cfb50cda46
commit ef183a6cb1
3 files changed
+30 -2

No files matched your search

+14
View File
@@ -9,4 +9,18 @@
;;
rdtim:
;; Disable interrupts for the duration of the routine, to prevent
;; jiffy clock update while reeading it's values
php
sei
;; Store the jiffy clock state
ldy TIME + 0
ldx TIME + 1
lda TIME + 2
;; Restore processor state and return
plp
rts
+14
View File
@@ -9,4 +9,18 @@
;;
settim:
;; Disable interrupts for the duration of the routine, to prevent
;; jiffy clock update while changing it's values
php
sei
;; Store the jiffy clock state
sty TIME + 0
stx TIME + 1
sta TIME + 2
;; Restore processor state and return
plp
rts