- Code: Select all
CB/56C0: 85 50 C3 Take 50,000 GP from party
Moderators: General Moderator, Game Moderator
CB/56C0: 85 50 C3 Take 50,000 GP from party
Take XXXX amount of GP from party
(gen. act. 85)
...
C0/AD89: 4C XX YY JMP $New Function
...
New Function -- Place somewhere in bank C0
C0/YYXX: A5 EB LDA $EB
C0/####: 1A INC
C0/####: F0 06 BEQ $####
C0/####: AD 60 18 LDA $1860
C0/####: 4C 8C AD JMP $AD8C
C0/####: AD 60 18 LDA $1860
C0/####: 38 SEC
C0/####: E9 64 13 SBC #$1364
C0/####: 85 2A STA $2A
C0/####: 7B TDC
C0/####: E2 20 SEP #$20
C0/####: AD 62 18 LDA $1862
C0/####: E9 97 SBC #$97
C0/####: 85 2C STA $2C
C0/####: 4C 9B AD JMP $AD9B
What I'm afraid of is that maybe the game takes away 65535 gold at some point
Ok, so can I ask why the code has to start at AD89?
And the BEQ has ####, but what do I put there?
but I've read in the manual that there is a long-branch also
(80 just branches up to 255, and it just goes down the code, not up, right?)
Change the end of the code from this:
C0/####: E9 97 SBC #$97
C0/####: 85 2C STA $2C
C0/####: 4C 9B AD JMP $AD9B
To this:
C0/####: E9 97 SBC #$97
C0/####: 85 2C STA $2C
C0/####: C9 40 CMP #$40
C0/####: 90 03 BCC $????
C0/####: 4C 9F AD JMP $AD9F
C0/####: 4C A9 AD JMP $ADA9
Return to ROM Hacking and Emulation
Users browsing this forum: No registered users and 3 guests