Enable NMI
This commit is contained in:
parent
ab8f986fe6
commit
d8ddf3bba6
@ -43,6 +43,11 @@ sta $2122
|
||||
.MACRO Set_Screen_Brightness
|
||||
lda #\1
|
||||
sta $2100 ; $2100 is the screen brightness register
|
||||
.ENDM
|
||||
|
||||
.MACRO Enable_NMI_And_Joypad
|
||||
lda #%10000001
|
||||
sta $4200
|
||||
|
||||
.ENDM
|
||||
|
||||
|
@ -81,8 +81,7 @@ Start:
|
||||
|
||||
Load_Block_to_VRAM TileMap, $0400, 32
|
||||
|
||||
lda #%10000001 ; enable NMI and joypads
|
||||
sta $4200
|
||||
Enable_NMI_And_Joypad
|
||||
|
||||
mainloop:
|
||||
Spin_Loop $02
|
||||
|
Loading…
Reference in New Issue
Block a user