Advertisement
Telinc1

Underwater HDMA Gradient

Jan 22nd, 2012
192
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. LDA #$00
  2. STA $4350
  3.  
  4. LDA #$32
  5. STA $4351
  6.  
  7. LDA #$17
  8. STA $212C
  9. LDA #$00
  10. STA $212D
  11. LDA #$27
  12. STA $40
  13.  
  14. STZ $0701
  15. STZ $0702
  16.  
  17. LDA.b #Gradient
  18. STA $4352
  19. LDA.b #Gradient>>8
  20. STA $4353
  21. LDA.b #Gradient>>16
  22. STA $4354
  23.  
  24. REP #$20            ;\ Set processor 16 bit
  25. LDA #$3200          ;| $4330 = $2132
  26. STA $4350           ;| $4331 = Mode 00
  27. LDA #Gradient       ;| Get gradient pointer
  28. STA $4352           ;| low and high byte
  29. PHK                 ;| Get bank
  30. PLY                 ;|
  31. STY $4354           ;| Store to address bank
  32. SEP #$20            ;/ Set processor 8 bit
  33. LDA #$38
  34. TSB $0D9F
  35.  
  36. RTS  ;Return
  37.  
  38. Gradient:
  39.     db $05,$9A
  40.     db $05,$98
  41.     db $05,$96
  42.     db $05,$94
  43.     db $05,$92
  44.     db $05,$90
  45.     db $04,$8E
  46.     db $04,$8C
  47.     db $04,$8A
  48.     db $03,$88
  49.     db $03,$86
  50.     db $02,$84
  51.     db $02,$82
  52.     db $78,$E0
  53.     db $02,$82
  54.     db $02,$84
  55.     db $03,$86
  56.     db $03,$88
  57.     db $04,$8A
  58.     db $04,$8C
  59.     db $04,$8E
  60.     db $05,$90
  61.     db $05,$92
  62.     db $05,$94
  63.     db $05,$96
  64.     db $05,$98
  65.     db $05,$9A
  66.     db $00
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement