base:nmi_lock_without_kernal
no way to compare when less than two revisions
Differences
This shows you the differences between two versions of the page.
— | base:nmi_lock_without_kernal [2016-10-05 12:05] (current) – created sokrates | ||
---|---|---|---|
Line 1: | Line 1: | ||
+ | ====== NMI Lock Without Kernal ====== | ||
+ | Modification of the example given at [[base: | ||
+ | |||
+ | < | ||
+ | ; ' | ||
+ | |||
+ | sei ;; switch off interrupt | ||
+ | lda #$35 ;; all RAM except D000-Dfff | ||
+ | sta $01 ;; write to $FFFA/$FFFB now possible | ||
+ | lda #< | ||
+ | sta $FFFA | ||
+ | lda #> | ||
+ | sta $FFFB | ||
+ | lda #$00 ;; stop Timer A | ||
+ | sta $DD0E | ||
+ | sta $DD04 ;; set Timer A to 0, after starting | ||
+ | sta $DD05 ;; NMI will occur immediately | ||
+ | lda # | ||
+ | sta $DD0D ;; set Timer A as source for NMI | ||
+ | lda # | ||
+ | sta $DD0E ;; start Timer A -> NMI | ||
+ | ;; from here on NMI is disabled | ||
+ | ... | ||
+ | |||
+ | nmiRoutine | ||
+ | rti ;; exit interrupt not acknowledged | ||
+ | </ |
base/nmi_lock_without_kernal.txt · Last modified: 2016-10-05 12:05 by sokrates