Fix cia_disable_irq macro.

I'm fairly sure this is the correct sequence of instructions to disable irq - tested in my own project. The original macro didn't work for me.
This commit is contained in:
Bruce Sutherland 2020-01-05 10:53:51 +08:00 committed by GitHub
parent 43b64aac21
commit d49e5cf022
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 2 deletions

View File

@ -16,8 +16,8 @@ byte cia2_ddrb @$DD03
macro asm void cia_disable_irq() {
? LDA #$7f
! LDA $dc0d
! LDA $dd0d
! STA $dc0d
! STA $dd0d
! LDA $dc0d
! LDA $dd0d
}