Users browsing this thread: 1 Guest(s)
Trying to understand subroutines

#21
Posts: 676
Threads: 44
Thanks Received: 26
Thanks Given: 21
Joined: Jan 2015
Reputation: 11
Status
Zombie
35/ for 3F/ seems right, but I can't remember if you have to account for -200 for headered address on events.

And wow, good catch, I didn't even notice that.


The only true wisdom is knowing you know nothing.
  Find
Quote  

#22
Posts: 2,549
Threads: 98
Thanks Received: 147
Thanks Given: 159
Joined: Aug 2009
Reputation: 52
Status
Nattak\'d
(12-08-2015, 07:07 PM)Kugawattan Wrote: Yes, I meant that. Sorry.

I remember having some issue editing this very event after the train, but I forget what it was and what needed to be done, but I know for some events it doesn't like returning with just FE at the end... maybe try instead using a subroutine B2 xx yy zz FE to jump back to the rest of the code where it normally is and plays out, if that's still a possibility. I realize this might not make much technical sense, but it does the trick sometimes.

Another option would be to move the entire event to free space, like the entire thing. Sometimes when I was having issues with freezing it turned out for whatever reason I had to have the whole damn thing play out with no jumps in-between.


We are born, live, die and then do the same thing over again.
Quote  
[-] The following 1 user says Thank You to Gi Nattak for this post:
  • Kugawattan (12-08-2015)

#23
Posts: 3,970
Threads: 279
Thanks Received: 236
Thanks Given: 58
Joined: Oct 2011
Reputation: 65
Status
Tissue-aware
(12-08-2015, 07:15 PM)catone Wrote: I can't remember if you have to account for -200 for headered address on events.

This become irrelevant if you don't work with a header when writing event or assembly code, a thing everyone should do.
  Find
Quote  

#24
Posts: 676
Threads: 44
Thanks Received: 26
Thanks Given: 21
Joined: Jan 2015
Reputation: 11
Status
Zombie
"Should" do? Yeah that's true, but its just so much fun confusing the hell out of yourself trying to remember to add for the header, and even more fun when you have to figure out if your adding for the header or subtracting for the header!

Although, in this case IF you still have the header, you do have to account for it because the start point of events would be CA/0200.

Which means your jump would need to be: 00 EE 35 not 00 F0 35.


The only true wisdom is knowing you know nothing.
  Find
Quote  

#25
Posts: 378
Threads: 94
Thanks Received: 17
Thanks Given: 26
Joined: Jul 2013
Reputation: 11
Status
Charmed
Quote:maybe try instead using a subroutine B2 xx yy zz FE to jump back to the rest of the code where it normally is and plays out, if that's still a possibility. I realize this might not make much technical sense, but it does the trick sometimes.

Thank you Gi Nattak. This worked perfectly as I intended. You're my saviour man, my own personal...Hacking...fairy...? Whatever. You're great, thanks for your time!


Step forward, spriters! We are also responsible to make hacks look new and fresh, we are no less important than code or ASM hackers! CHARGE!!
Quote  



Forum Jump:

Users browsing this thread: 1 Guest(s)


Theme by Madsiur2017Custom Graphics by JamesWhite