base:the_double_irq_method
Differences
This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revision | |||
base:the_double_irq_method [2016-11-05 21:10] – [Theory] monte_carlos | base:the_double_irq_method [2016-11-05 21:12] (current) – [Theory] monte_carlos | ||
---|---|---|---|
Line 70: | Line 70: | ||
fixcycle bit $d020 | fixcycle bit $d020 | ||
... | ... | ||
+ | |||
</ | </ | ||
+ | The corresponding irq init looks like this: | ||
+ | |||
+ | < | ||
+ | .PROC irqInit | ||
+ | lda #$7f | ||
+ | sta $dc0d | ||
+ | bit $dc0d | ||
+ | lda #$81 | ||
+ | sta $d01a | ||
+ | lda #<irq0 | ||
+ | sta $0314 | ||
+ | lda #>irq0 | ||
+ | sta $0315 | ||
+ | lda #<irq | ||
+ | sta $fffe | ||
+ | lda #>irq | ||
+ | sta $ffff | ||
+ | lda #$38 | ||
+ | sta $d012 | ||
+ | lda #$36 | ||
+ | sta $01 | ||
+ | lsr $d019 | ||
+ | rts | ||
+ | .ENDPROC | ||
+ | |||
+ | The lsr $d019 at the end of the init is performed to clear the irq request if for some reason a rasterirq request is rised during init. | ||
+ | |||
+ | </ |
base/the_double_irq_method.1478376609.txt.gz · Last modified: 2016-11-05 21:10 by monte_carlos