Write new code?
#48
Evolved Member
Join Date: Mar 2008
Location: Lattitude 48.38°, Longitude 17.58°, Altitude 146m = Slovakia, for common dude
Posts: 730
Likes: 0
Received 2 Likes
on
2 Posts
Code:
sub_35500 00035500 sts.l pr, @-r15 00035502 mov.l r0, @-r15 00035504 mov.l r1, @-r15 00035506 mov.l r2, @-r15 00035508 mov.l @(h'80,pc), r1 ; FFFF8500 0003550A mov.b @r1, r0 0003550C add #1, r0 0003550E and #h'FF, r0 00035510 mov.b r0, @r1 00035512 mov.l @(h'7C,pc), r1 ; FFFF8501 00035514 mov.w @r1, r0 00035516 mov.w @(h'88,pc), r2 ;h'15E 00035518 cmp/hi r2, r0 0003551A bf 35520 0003551C mov #0, r0 0003551E mov.w r0, @r1 00035520 mov.l @(h'70,pc), r0 ; mut_9a 00035522 mov.w @r0, r0 00035524 mov.l @(h'70,pc), r1 ; FFFF8502 00035526 mov.w r0, @r1 00035528 mov.w @(h'70,pc), r0 ; 1 0003552A tst r0, r0 0003552C bt 35548 0003552E mov.w @(h'6C,pc), r0 ; 1 00035530 mov.l @(h'50,pc), r1 ; mut_26 00035532 mov.w @r1, r1 00035534 cmp/hs r0, r1 00035536 bf 35548 00035538 mov.w @(h'64,pc), r0 ; h'140 0003553A mov.l @(h'4C,pc), r1 ; load_2b 0003553C mov.w @r1, r1 0003553E cmp/hs r0, r1 00035540 bf 35548 00035542 mov.l @(h'4C,pc), r1 ; FFFF8501 00035544 mov.w @(h'5A,pc), r0 ; h'15E 00035546 mov.w r0, @r1 00035548 mov.l @(h'44,pc), r1 ; FFFF8501 0003554A mov.w @r1, r0 0003554C tst r0, r0 0003554E bt 35554 00035550 add #-1, r0 00035552 mov.w r0, @r1 00035554 tst r0, r0 00035556 bt 3556C 00035558 mov.l @(h'30,pc), r0 ; FFFF8500 0003555A mov.b @r0, r0 0003555C shlr2 r0 0003555E shlr2 r0 00035560 tst #1, r0 00035562 bf 3556C 00035564 mov.l @(h'30,pc), r1 ; FFFF8502 00035566 mov.w @r1, r0 00035568 xor #8, r0 0003556A mov.w r0, @r1 0003556C mov.l @r15+, r2 0003556E mov.l @r15+, r1 00035570 mov.l @r15+, r0 00035572 mov.l @(h'C,pc), r0 ; sub A98A 00035574 jsr @r0 ; sub_A98A 00035576 nop 00035578 lds.l @r15+, pr 0003557A rts 0003557C nop
Last edited by acamus; Nov 4, 2009 at 10:31 PM.
#51
Evolved Member
Join Date: Mar 2008
Location: Lattitude 48.38°, Longitude 17.58°, Altitude 146m = Slovakia, for common dude
Posts: 730
Likes: 0
Received 2 Likes
on
2 Posts
MOV.W @(disp,PC),Rn
1001nnnndddddddd
(disp × 2 + PC) → Sign extension → Rn
so displacement (disp) can be odd...., this must be something else...
you can search h'7c in your rom and will find many mov commands.
#55
Evolved Member
iTrader: (12)
Join Date: Dec 2003
Location: Farmington, NM
Posts: 591
Likes: 0
Received 0 Likes
on
0 Posts
Wow! What Rosetta Stone CD do I need to understand this language? I'm an Engineer and I don't understand any of this, though granted I only took VB and C++ and didn't enjoy either.
Keep up the good work guys, the more fellas we have attacking our ECU disasm, the more awesome our tuning platform becomes!
And Tephra, we need to get you another EVO!
Keep up the good work guys, the more fellas we have attacking our ECU disasm, the more awesome our tuning platform becomes!
And Tephra, we need to get you another EVO!
#58
Evolved Member
iTrader: (2)
Wow, old thread.
I wrote an SH2 disassembler in Python years ago, if it helps: https://github.com/logic/sh2dis
No support, and you're definitely on your own for working with the resulting output.
I wrote an SH2 disassembler in Python years ago, if it helps: https://github.com/logic/sh2dis
No support, and you're definitely on your own for working with the resulting output.
Thread
Thread Starter
Forum
Replies
Last Post