Enable NMI

This commit is contained in:
greg 2016-12-07 10:41:33 -08:00
parent ab8f986fe6
commit d8ddf3bba6
2 changed files with 6 additions and 2 deletions

View File

@ -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

View File

@ -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