atm959

Simple SNES Code

Jun 22nd, 2016
288
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.71 KB | None | 0 0
  1. ;== Include memorymap, header info, and SNES initialization routines
  2. .INCLUDE "header.inc"
  3. .INCLUDE "InitSNES.asm"
  4.  
  5. ;========================
  6. ; Start
  7. ;========================
  8.  
  9. .BANK 0 SLOT 0
  10. .ORG 0
  11. .SECTION "MainCode"
  12.  
  13. VBlank: RTI ; Perform VBlank
  14.  
  15. Main:
  16. InitializeSNES ; Init Snes :)
  17.  
  18. stz $2121 ; Edit color 0 - snes' screen color you can write it in binary or hex
  19. lda #%00011111 ; binary is more visual, but if you wanna be cool, use hex ;)
  20. sta $2122
  21. stz $2122 ; second byte has no data, so we write a 0
  22.  
  23. lda #$0F ; = 00001111
  24. sta $2100 ; Turn on screen, full brightness
  25.  
  26. .ENDS
Advertisement
Add Comment
Please, Sign In to add comment