diff --git a/my_custom.asm b/my_custom.asm index 2ee9b3f..d4dacd6 100644 --- a/my_custom.asm +++ b/my_custom.asm @@ -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 diff --git a/test_gfx.asm b/test_gfx.asm index 89a721f..415f2e3 100644 --- a/test_gfx.asm +++ b/test_gfx.asm @@ -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