0 Members and 3 Guests are viewing this topic.
ROM:00007000 loc_7000: ; DATA XREF: ROM:0009DFFCROM:00007000 ; ROM:0009E17CROM:00007000 mov.l r14, @-r15ROM:00007002 sts.l pr, @-r15ROM:00007004 add #-4, r15ROM:00007006 mov.l r4, @r15ROM:00007008 mov.l dword_7028, r3 ; h'300034ROM:0000700A jsr @r3ROM:0000700C mov r5, r14ROM:0000700E mov.l dword_702C, r1 ; h'38DF00ROM:00007010 mov #1, r6ROM:00007012 mov #0, r4ROM:00007014 jsr @r1ROM:00007016 mov r6, r5ROM:00007018 mov.l dword_7030, r7 ; h'33767CROM:0000701A extu.w r14, r5ROM:0000701C mov.l @r15, r4ROM:0000701E add #4, r15ROM:00007020 lds.l @r15+, prROM:00007022 jmp @r7ROM:00007024 mov.l @r15+, r14ROM:00007024 ; ---------------------------------------------------------------------------ROM:00007026 .align 4ROM:00007028 dword_7028: .data.l h'300034 ; DATA XREF: ROM:00007008ROM:0000702C dword_702C: .data.l h'38DF00 ; DATA XREF: ROM:0000700EROM:00007030 dword_7030: .data.l h'33767C ; DATA XREF: ROM:00007018ROM:00007034 ; ---------------------------------------------------------------------------ROM:00007034 mov.l dword_706C, r7 ; h'38FE4CROM:00007036 mov #0, r6ROM:00007038 mov.l dword_7070, r4 ; h'38FE50ROM:0000703A bra loc_7042ROM:0000703C mov.l @r7, r2ROM:0000703E ; ---------------------------------------------------------------------------ROM:0000703EROM:0000703E loc_703E: ; CODE XREF: ROM:00007046ROM:0000703E mov.l r6, @r2ROM:00007040 add #4, r2ROM:00007042ROM:00007042 loc_7042: ; CODE XREF: ROM:0000703AROM:00007042 mov.l @r4, r5ROM:00007044 cmp/hs r5, r2
Simply open the add-in file and select SH3B as the processor type.Offset 0x7000..0x7044 with IDA:Code: [Select]ROM:00007000 loc_7000: ; DATA XREF: ROM:0009DFFCROM:00007000 ; ROM:0009E17CROM:00007000 mov.l r14, @-r15ROM:00007002 sts.l pr, @-r15ROM:00007004 add #-4, r15ROM:00007006 mov.l r4, @r15ROM:00007008 mov.l dword_7028, r3 ; h'300034ROM:0000700A jsr @r3ROM:0000700C mov r5, r14ROM:0000700E mov.l dword_702C, r1 ; h'38DF00ROM:00007010 mov #1, r6ROM:00007012 mov #0, r4ROM:00007014 jsr @r1ROM:00007016 mov r6, r5ROM:00007018 mov.l dword_7030, r7 ; h'33767CROM:0000701A extu.w r14, r5ROM:0000701C mov.l @r15, r4ROM:0000701E add #4, r15ROM:00007020 lds.l @r15+, prROM:00007022 jmp @r7ROM:00007024 mov.l @r15+, r14ROM:00007024 ; ---------------------------------------------------------------------------ROM:00007026 .align 4ROM:00007028 dword_7028: .data.l h'300034 ; DATA XREF: ROM:00007008ROM:0000702C dword_702C: .data.l h'38DF00 ; DATA XREF: ROM:0000700EROM:00007030 dword_7030: .data.l h'33767C ; DATA XREF: ROM:00007018ROM:00007034 ; ---------------------------------------------------------------------------ROM:00007034 mov.l dword_706C, r7 ; h'38FE4CROM:00007036 mov #0, r6ROM:00007038 mov.l dword_7070, r4 ; h'38FE50ROM:0000703A bra loc_7042ROM:0000703C mov.l @r7, r2ROM:0000703E ; ---------------------------------------------------------------------------ROM:0000703EROM:0000703E loc_703E: ; CODE XREF: ROM:00007046ROM:0000703E mov.l r6, @r2ROM:00007040 add #4, r2ROM:00007042ROM:00007042 loc_7042: ; CODE XREF: ROM:0000703AROM:00007042 mov.l @r4, r5ROM:00007044 cmp/hs r5, r2
File size: 2918000007000: MOV.L @($01*4+PC),R15 = #FFFFFFFF00007002: DT R1500007004: BF $700200007006: RTS00007008: .data ffffffff dword ref:7000
I am not sure you can use RTS to get back to the OS.Disassemble the small Conv.g3a - there is only one RTS (at $7068) and its the applications subroutine.
How do you run it from Command line?
It seems like the .g3a reading still tries to read part of the header. And, um... disassembling doesn't seem to work at all.