Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- org $808A4E
- ClearStack:
- REP #$20
- %ClearRAMInit()
- LDA #$1100;#$0D80 seems to be enough in SlowROM mode, but I need a bit more in FastROM.
- .WasteTime
- DEC A
- BNE .WasteTime
- ;I have NO idea why this fixes anything, but I do know that it negates part of the effect of this patch.
- ;Without this patch, the time taken is 62752 cycles.
- ;With it, the time taken is 8049 cycles.
- ;However, this loop eats 20482 cycles, meaning the total is 28531.
- %JML(ClearStackFree)
- ClearStack_Return:
- RTS
- warnpc $808A79+1
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement