Advertisement
MolSno

Palette upload with DMA

Mar 21st, 2015
223
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.35 KB | None | 0 0
  1. REP #$20
  2. LDA #$001F : STA $074B
  3.  
  4. LDY #$00 : STY $2121 ; Set address for CGRAM Write to 00.
  5. LDA #$2200 : STA $4320 ; One register write once, to 2122.
  6. LDA #$0703 : STA $4322 ; Address of palette to upload.
  7. LDY.b #$7E : STY $4324 ; Bank to grab palette from.
  8. LDA #$0200 : STA $4325 ; Upload two bytes.
  9. LDX #$04 : STX $420B ; Start DMA.
  10. SEP #$20
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement