Pages: [1]
Author Topic: certainly a beginner question, sub ram_variable not possible  (Read 2983 times)
sonflasch
Full Member
***

Karma: +12/-2
Offline Offline

Posts: 66


« 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
« Last Edit: November 07, 2019, 09:17:14 PM by sonflasch » Logged
fknbrkn
Hero Member
*****

Karma: +176/-18
Offline Offline

Posts: 1401


mk4 1.8T AUM


« Reply #1 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
Logged
sonflasch
Full Member
***

Karma: +12/-2
Offline Offline

Posts: 66


« Reply #2 on: November 07, 2019, 08:56:37 PM »

thanks... Grin Grin
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  Roll Eyes
Logged
Pages: [1]
  Print  
 
Jump to:  

Powered by SMF 1.1.21 | SMF © 2015, Simple Machines Page created in 0.014 seconds with 16 queries. (Pretty URLs adds 0.001s, 0q)