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