nescom icon indicating copy to clipboard operation
nescom copied to clipboard

Adjustable offset for TrampolineRoutineWithAppendix

Open nstbayless opened this issue 1 year ago • 0 comments

I was disassembling Monster Maker: 7 Treasures and I found a routine similar to the one you found in The Guardian Legend, but instead of calling a routine at (trailing word-1), it calls the routine at the trailing word directly. TrampolineRoutineWithAppendix is what you call this type of routine. JumpTableRoutineWithAppendix has an adjustable offset parameter, so I figured that TrampolineRoutineWithAppendix ought to as well.

I'm not very content that the default value I chose for the offset of TrampolineRoutineWithAppendix is 1 in order to be backward-compatible with your guardianleg.ini. It's 0 for JumpTableRoutineWithAppendix. Alas.

Anyway... here's my usage for Monster Maker: 7 Treasures.

CertainlyCode $3C695 Farcall
TrampolineRoutineWithAppendix $3C695 0

nstbayless avatar Apr 27 '24 01:04 nstbayless