0 Members and 1 Guest are viewing this topic.
D101FFFFFFE0D2010000000061230009
D101FFFFFFE0D2010000000022190009
Oh, I forgot to mention run one *OR* the other, not both. It's redundant. But we already have a C compiler
GCC says hi. Seriously, I don't know why we'd consider writing a C compiler from scratch when we have a maintained open-source one already. (It also includes an assembler of course)
0009 0009 0009 D806 D906 DA07 9B10 9C10 9D0D 2AC1 29B1 28D1 0009 0009 000B0009 FFFF FF80 FFFF FF84 FFFF FF86 0009 0300 5A7A A565
00300000: NOP00300002: NOP00300004: NOP00300006: MOV.L @($06*4+PC),R8 = #FFFFFF8000300008: MOV.L @($06*4+PC),R9 = #FFFFFF840030000A: MOV.L @($07*4+PC),R10 = #FFFFFF860030000C: MOV.W @($10*2+PC),R11 = #FFFF5A7A0030000E: MOV.W @($10*2+PC),R12 = #FFFFA56500300010: MOV.W @($0D*2+PC),R13 = #FFFF030000300012: MOV.W R12,@R10 => A565 = [FFFFFF86]00300014: MOV.W R11,@R9 => 5A7A = [FFFFFF84]00300016: MOV.W R13,@R8 => 0300 = [FFFFFF80]00300018: NOP0030001A: NOP0030001C: RTS0030001E: NOP00300020: .data ffffff80 dword ref:30000600300024: .data ffffff84 dword ref:30000800300028: .data ffffff86 dword ref:30000A0030002C: NOP0030002E: 030000300030: 5A7A00300032: A565
Whoever decided that one of the things they didn't need to include in the SH3 processor were LD commands deserves a lot of things that I won't mention. I'm almost done debugging the relative loads... an hour and a half later for six instructions.Okay, here's the code. It should set the processor to 3x its normal speed, but my BASIC test program in unaffected. Any ideas why? Also, the memory areas close to 0x0000 0000h all appear to be write locked. They're not boot code though, because that's at 0xA000 0000h.Spoiler For Spoiler: Code: [Select]0009 0009 0009 D806 D906 DA07 9B10 9C10 9D0D 2AC1 29B1 28D1 0009 0009 000B0009 FFFF FF80 FFFF FF84 FFFF FF86 0009 0300 5A7A A565Code: [Select]00300000: NOP00300002: NOP00300004: NOP00300006: MOV.L @($06*4+PC),R8 = #FFFFFF8000300008: MOV.L @($06*4+PC),R9 = #FFFFFF840030000A: MOV.L @($07*4+PC),R10 = #FFFFFF860030000C: MOV.W @($10*2+PC),R11 = #FFFF5A7A0030000E: MOV.W @($10*2+PC),R12 = #FFFFA56500300010: MOV.W @($0D*2+PC),R13 = #FFFF030000300012: MOV.W R12,@R10 => A565 = [FFFFFF86]00300014: MOV.W R11,@R9 => 5A7A = [FFFFFF84]00300016: MOV.W R13,@R8 => 0300 = [FFFFFF80]00300018: NOP0030001A: NOP0030001C: RTS0030001E: NOP00300020: .data ffffff80 dword ref:30000600300024: .data ffffff84 dword ref:30000800300028: .data ffffff86 dword ref:30000A0030002C: NOP0030002E: 030000300030: 5A7A00300032: A565