Advertisement
Erik557

Untitled

Feb 12th, 2017
107
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.15 KB | None | 0 0
  1. ; fixed QuickROM
  2.  
  3. ; ExAnimation check
  4. assert read2($808A4E) != $C230, "Please, save a level with ExAnimation in Lunar Magic first."
  5.  
  6. org $808A4E
  7. REP #$20
  8. LDA #$8008
  9. STA $4300
  10. LDA.w #AZero
  11. STA $4302
  12. LDY.b #AZero>>16
  13. STY $4304
  14. LDY #$7E
  15. STY $2183
  16. autoclean JML QuickClear
  17.  
  18. ; Macros I stole from Alcaro
  19.  
  20. macro ClearRAM(start, count)
  21. LDA.w #<start>
  22. STA $2181
  23. LDA.w #<count>
  24. STA $4305
  25. LDY #$01
  26. STY $420B
  27. endmacro
  28.  
  29. freedata
  30. QuickClear:
  31. SEI
  32. %ClearRAM($7E0000, $0100)
  33. %ClearRAM($7E0200, $1E00)
  34. LDA #$0000
  35. STA $7F837B
  36. STA $7FC0C0 ;\
  37. STA $7FC0C7 ; |
  38. STA $7FC0CE ; |
  39. STA $7FC0D5 ; | restore LM's hijack
  40. STA $7FC0DC ; | (i have no idea what these are, maybe manual ExAnimation triggers?)
  41. STA $7FC0E3 ; |
  42. STA $7FC0EA ; |
  43. STA $7FC0F1 ;/
  44. SEP #$20
  45. DEC
  46. STA $7F837D
  47. CLI
  48. JML $808A78
  49.  
  50. AZero:
  51. db $00 ; literally.
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement