Users browsing this thread: 1 Guest(s)
Error in Imp affecting call monster sprite

#4
Posts: 200
Threads: 1
Thanks Received: 10
Thanks Given: 0
Joined: Oct 2015
Reputation: 18
Status
None
no interactions between the patches jump out at me, and i can't say the following necessarily relates to the problem, but this:

Code:
LDA #$01
JML C2_2E75_helper

can't be doing what i intended, given the target function promptly clobbers A to preserve $B1 (a late-stage addition). :/

if $B1 holds 20h, i'll be calling some bogus pointer instead of a ($2E93, X) table entry. if it holds 00h, the toggle i'm attempting will fail.

try changing C2_2E75_helper's
LDA $B1/pha/.../pla/sta $b1 to:
ldx $b1/phx/.../plx/stx $b1 .

if we're worried about altering X's value from vanilla, we can probably edit only the first 2 instructions.

another alternative is to leave all 4 instructions untouched, change "JSR $2E75" to "JSR $2E77" (or "JSR $2E74"), and the caller's "LDA #$01" to "LDX #$02" (or "LDX #$01").
Quote  
[-] The following 1 user says Thank You to assassin for this post:
  • SilentEnigma (10-17-2020)



Messages In This Thread
RE: Error in Imp affecting call monster sprite - by assassin - 06-20-2020, 01:36 AM

Forum Jump:

Users browsing this thread: 1 Guest(s)


Theme by Madsiur2017Custom Graphics by JamesWhite