pgmfi.org

Hacking up Honda's ECU
It is currently Fri Mar 29, 2024 12:47 am

All times are UTC - 5 hours [ DST ]




Post new topic Reply to topic  [ 2 posts ] 
Author Message
 Post subject: 66k ASM help needed
PostPosted: Sat Feb 14, 2004 2:16 am 
Offline

Joined: Tue Jul 27, 2004 2:15 am
Posts: 202
Location: Walla Walla, WA (south east WA)
label_0688: CLR A ; 0688 1 108 20E F9
LB A, 0b3h ; 0689 0 108 20E F5B3
L A, ACC ; 068B 1 108 20E E506
SWAP ; 068D 1 108 20E 83
SUB A, 0b6h ; 068E 1 108 20E B5B6A2
MOV er0, #00b00h ; 0691 1 108 20E 4498000B
JGE label_069e ; 0695 1 108 20E CD07
ST A, er1 ; 0697 1 108 20E 89
CLR A ; 0698 1 108 20E F9
SUB A, er1 ; 0699 1 108 20E 29
MOV er0, #00b00h ; 069A 1 108 20E 4498000B

trying to understand why a mugen pr3 would change the mov er0, #00b00h to move er0, #01600h

just trying understand why things are done..

maybe i'm looking at it the wrong way...
maybe the "er0" is the important thing here and not the "address?" ??
(just thinking out loud)

[%sig%]


Top
 Profile  
Reply with quote  
 Post subject: Re: 66k ASM help needed
PostPosted: Mon Mar 15, 2004 7:04 pm 
When 01600h is moved into er0 it will set r0 to 0016h and r1 to 0000h, or the other way around. They may be read off individually later. 00b00 will set the registers to 000bh and 0000h. Might just be a faster way to load numbers into the registers.

I don't know much, but trying to help. :-)

PelZ - ESI/VTEC


Top
  
Reply with quote  
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 2 posts ] 

All times are UTC - 5 hours [ DST ]


Who is online

Users browsing this forum: No registered users and 11 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
Powered by phpBB® Forum Software © phpBB Group