implemented SETTIM and RDTIM routines
This commit is contained in:
1 parent
cfb50cda46
commit
ef183a6cb1
3 files changed
+30
-2
No files matched your search
@@ -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
|
||||
|
||||
@@ -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
|
||||
|
||||
Reference in new issue
Block a user