HabsoluteFate
Posts: 152/179 |
Hello, I'm having an issue returning from a Jump Long. For some reason instead of returning to the proper address following the Jump it returns to some random address. I'm assuming it is some sort of issue with the stack or related but can't figure out what might be wrong. Here is the code in question:
REP #$20 LDA #$0000 SEP #$20 LDA $19 ASL A ASL A ASL A ASL A REP #$20 STA $0D82 LDA #$0000 SEP #$20 LDA $0DB3 REP #$20 ASL A ASL A ASL A ASL A ASL A ASL A ASL A ASL A ASL A ADC $0D82 STA $0D82 LDA #$F7D4 ADC $0D82 STA $0D82 SEP #$20 RTL
Any help would be apreciated. for those wondering thats the new palette loading code And yes it probably could be made to be faster but surprisingly enough i'm learning as i go here Any suggestions to make this quicker would be apreciated although the main thing is to get it to work right now
|