KINGx - Das inoffizielle PlayStation Forum & News Portal

Normale Version: Reverse of 6.20TN-A (HEN) HELP WITH MIPS
Sie sehen gerade eine vereinfachte Darstellung unserer Inhalte. Normale Ansicht mit richtiger Formatierung.
Hi everyone in the PSPKING.DE forum!
Like everyone knows that the 6.20TN-A (HEN) have already been reversed.
I was taking a look at systemctrl.S (witch I renamed to systemctrl.c) and found 2 things in it. They are:


Vsh Menu
6.20TN-A (HEN)


So if anyone out in PSPKING.DE forums can help me translate this MIPS to pseudo-c code:


6.20TN-A (HEN)

Code:
; Data ref 0x00006A70 L"6.20 TN-  (HEN)"
    0x0000213C: 0x24636A70 'pjc$' - addiu      $v1, $v1, 27248
    0x00002140: 0x02308021 '!.0.' - addu       $s0, $s1, $s0
    0x00002144: 0x24420041 'A.B$' - addiu      $v0, $v0, 65
    0x00002148: 0x00602821 '!(`.' - addu       $a1, $v1, $zr
    0x0000214C: 0x02002021 '! ..' - addu       $a0, $s0, $zr
    0x00002150: 0xA4620010 '..b.' - sh         $v0, 16($v1)
    0x00002154: 0x0C00105F '_...' - jal        SysclibForKernel_AB7592FF
    0x00002158: 0x24060020 ' ..$' - addiu      $a2, $zr, 32
    0x0000215C: 0x3C030001 '...<' - lui        $v1, 0x1
    0x00002160: 0x3205FFFF '...2' - andi       $a1, $s0, 0xFFFF
    0x00002164: 0x3C023C02 '.<.<' - lui        $v0, 0x3C02
    0x00002168: 0x00108403 '....' - sra        $s0, $s0, 16
    0x0000216C: 0x34648924 '$.d4' - ori        $a0, $v1, 0x8924
    0x00002170: 0x02028025 '%...' - or         $s0, $s0, $v0
    0x00002174: 0x34638920 ' .c4' - ori        $v1, $v1, 0x8920
    0x00002178: 0x3C023442 'B4.<' - lui        $v0, 0x3442
    0x0000217C: 0x00A22825 '%(..' - or         $a1, $a1, $v0
    0x00002180: 0x02231821 '!.#.' - addu       $v1, $s1, $v1
    0x00002184: 0x02242021 '! $.' - addu       $a0, $s1, $a0
    0x00002188: 0xAC700000 '..p.' - sw         $s0, 0($v1)
    0x0000218C: 0xAC850000 '....' - sw         $a1, 0($a0)

loc_00002190:        ; Refs: 0x00002120
    0x00002190: 0x3C020001 '...<' - lui        $v0, 0x1
; Data ref 0x00008404 ... 0x00000000 0x00000000 0x00000000 0x00000000
    0x00002194: 0x8C428404 '..B.' - lw         $v0, -31740($v0)
    0x00002198: 0x14400009 '..@.' - bne        $v0, $zr, loc_000021C0
    0x0000219C: 0x3C020001 '...<' - lui        $v0, 0x1
    0x000021A0: 0x3C040002 '...<' - lui        $a0, 0x2
    0x000021A4: 0x3484DB90 '...4' - ori        $a0, $a0, 0xDB90
    0x000021A8: 0x3C050000 '...<' - lui        $a1, 0x0
    0x000021AC: 0x02242021 '! $.' - addu       $a0, $s1, $a0



VSH Menu


Code:
; Data ref 0x00004BF8 "TNVshMenu"
    0x00002A6C: 0x24844BF8 '.K.$' - addiu      $a0, $a0, 19448
    0x00002A70: 0x14400067 'g.@.' - bne        $v0, $zr, loc_00002C10
    0x00002A74: 0x3C020001 '...<' - lui        $v0, 0x1
    0x00002A78: 0x3C020001 '...<' - lui        $v0, 0x1
; Data ref 0x00008418 ... 0x00000000 0x00000000 0x00000000 0x00000000
    0x00002A7C: 0x8C428418 '..B.' - lw         $v0, -31720($v0)
    0x00002A80: 0x50400033 '3.@P' - beql       $v0, $zr, loc_00002B50
    0x00002A84: 0x3C040000 '...<' - lui        $a0, 0x0
    0x00002A88: 0x3C040000 '...<' - lui        $a0, 0x0
    0x00002A8C: 0x0C000FED '....' - jal        LoadCoreForKernel_BEF0A05E



PS. Don't mind anwsering in English, you guys can reply in any language. I'll translate it on google translator Big Grin

I can't do anything, if you don't post the complete subroutines... there are some registers in that code which's values I don't know, (e.g.: $s0 and $s1) Wink
So you basically want someone else doing the work for you (i.e. reverse-engineering)? I'd suggest you to learn the language you're trying to interpret instead of cutting out parts of the disassembled code in which you find an interesting looking string. A quick google search should help you finding what you'll need in order to reverse MIPS code.
Referenz-URLs