NefMoto

Technical => Reverse Engineering => Topic started by: sonflasch on November 07, 2019, 12:39:28 PM



Title: certainly a beginner question, sub ram_variable not possible
Post by: sonflasch on November 07, 2019, 12:39:28 PM
Hello @ all

I'm trying to change a subtraction in 551k file (adress 87A69E)

mov r4, plsol_w
sub r4,plgru_w  ->>> 22 F4 66 A6

change in
mov r4, plsol_w
sub r4, pu_w  ->> that would have to ->> 22 F4 8C 0A
I look for where pu_w is used fits 8C 0A is right, but it does not work.
I'm looking for a subtraction with pu_w .. there are too 8C 0A.
I do that in 551f where pu_w is also in the range of 382xxx it works fine.

can explain to me one why that does not work at 551k.
I try to explain it but I miss the knowledge?
or can someone give me a solution

many thanks


Title: Re: certainly a beginner question, sub ram_variable not possible
Post by: fknbrkn on November 07, 2019, 06:35:54 PM

Pu_w @384A8C
Short adressing cannot be applied to that offset
Use


extp #0E1h, #1 D7 40 E1 00
sub r4, pu_w 42 F5 8C 0A

or exts #38h etc


Title: Re: certainly a beginner question, sub ram_variable not possible
Post by: sonflasch on November 07, 2019, 08:56:37 PM
thanks... ;D ;D
another user has just written me too.

Now I just have to see how I get it in there. place is not free.


I will buy another book to learn more  ::)