Advertisement
Erik557

Untitled

Mar 8th, 2017
98
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.85 KB | None | 0 0
  1. ;~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  2. ;
  3. ; Line-Guide "Acts Like" Fix, by imamelia
  4. ;
  5. ; This patch makes the line guide processing routine depend on the "acts like"
  6. ; setting of the Map16 tiles rather than the tile number. This allows you to put
  7. ; line guide tiles anywhere on any Map16 page, as long as they act like the original
  8. ; tiles (or a tile set to act like one of the original tiles).
  9. ;
  10. ;~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  11.  
  12. sa1rom
  13. org $01D99C
  14. autoclean JML LineGuideActFix
  15.  
  16. freecode
  17. reset bytes
  18.  
  19. LineGuideActFix:
  20. XBA
  21. LDA $7693
  22. REP #$30
  23. ASL
  24. ADC.l $06F624
  25. STA $0D
  26. SEP #$20
  27. LDA $06F626
  28. STA $0F
  29. REP #$20
  30. LDA [$0D]
  31. SEP #$30
  32. STA $7693
  33. XBA
  34. CMP #$02
  35. BCS LineGuideActFix
  36. CMP #$00
  37. JML $01D9A6
  38.  
  39. print "Freespace used: ",bytes," bytes."
  40. print "Next address: $",pc
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement