Advertisement
Guest User

Untitled

a guest
Jul 27th, 2017
60
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. .include "header.inc"
  2. .include "Snes_Init.asm"
  3. VBlank:
  4.     RTI
  5.  
  6. .bank 0
  7. .section "MainCode"
  8.  
  9. Start:
  10.    ; Get our motor running!
  11.    Snes_Init
  12.    
  13.    sep #$20 ; Set the A register to 8-bit
  14.  
  15.    lda #%10000000
  16.    sta $2100
  17.  
  18.    ; Lets set the color
  19.    lda #%11100000 ; load the low byte of the green color.
  20.    sta $2122
  21.    lda #%00000000 ; load the high byte of the green color.
  22.    sta $2122
  23.    ; end vblank
  24.    lda #%00001111 ; Set brightness to 15 (100%)
  25.    sta $2100
  26. Forever:
  27.    jmp Forever
  28.  
  29. .ends
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement