Advertisement
Erik557

Untitled

Feb 12th, 2017
97
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.50 KB | None | 0 0
  1. org $808A4E
  2. ClearStack:
  3. REP #$20
  4. %ClearRAMInit()
  5. LDA #$1100;#$0D80 seems to be enough in SlowROM mode, but I need a bit more in FastROM.
  6. .WasteTime
  7. DEC A
  8. BNE .WasteTime
  9. ;I have NO idea why this fixes anything, but I do know that it negates part of the effect of this patch.
  10. ;Without this patch, the time taken is 62752 cycles.
  11. ;With it, the time taken is 8049 cycles.
  12. ;However, this loop eats 20482 cycles, meaning the total is 28531.
  13. %JML(ClearStackFree)
  14. ClearStack_Return:
  15. RTS
  16. warnpc $808A79+1
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement