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
@@ -101,8 +101,8 @@ NOTE: Even the 'DONE' routines won't support features described as missing in on
|
||||
| `$FFD2` | `CHROUT` | PARTIAL | |
|
||||
| `$FFD5` | `LOAD` | PARTIAL | no VERIFY support yet, no STOP key support |
|
||||
| `$FFD8` | `SAVE` | NOT DONE | |
|
||||
| `$FFDB` | `SETTIM` | NOT DONE | |
|
||||
| `$FFDE` | `RDTIM` | NOT DONE | |
|
||||
| `$FFDB` | `SETTIM` | DONE | |
|
||||
| `$FFDE` | `RDTIM` | DONE | |
|
||||
| `$FFE1` | `STOP` | DONE | |
|
||||
| `$FFE4` | `GETIN` | PARTIAL | only some devices supported |
|
||||
| `$FFE7` | `CLALL` | DONE | |
|
||||
|
||||
@@ -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