Can someone explain how gxemu command 0x0 (a.k.a. netemu 0x1) works ?
So... the first value is an offset of an .elf (needed to check in ps2dis or something like that)... and second value is an identifyer of a function inside the .elf ?
With the first value there is no problem at the time of exporting configs from gxemu out to convert to config files for netemu... because the value is literally the same in both (just endianess swapped, in gxemu the values are in big endian btw)
But to get the second value it seems it cant be made a direct conversion :/ because in gxemu it looks like is identifyed with a long hexcode, but in the config files is just a short id (like function 1... or function 2... etc..)
It works this way im telling or im brainstorming too much ?
SLUS-21180 | 0000003cc13d914d | 1 | cmd: 0x0
Code:
0033E850 00 00 00 3C C1 3D 91 4D ...<Á='M
0033E860 00 00 00 00 00 33 B5 28 00 00 00 01 00 00 00 00 .....3µ(........
At offset 0x33B528 (1 entry)
Code:
0033B520 00 00 00 00 00 00 00 00 ........
0033B530 00 3C 02 04 00 00 00 00 00 00 00 00 00 03 6F C8 .<............oÈ
3C0204 ???????? <--- same value in CONFIG file
036FC8 ????????
SLUS-20524 | 0000009c619d316d | 1 | cmd: 0x0
Code:
0033F090 00 00 00 9C 61 9D 31 6D ...œa.1m
0033F0A0 00 00 00 00 00 33 B3 00 00 00 00 01 00 00 00 00 .....3³.........
At offset 0x33B300 (1 entry)
Code:
0033B300 00 00 00 00 00 00 00 00 00 20 21 C4 00 00 00 00 ......... !Ä....
0033B310 00 00 00 00 00 03 42 24 ......B$
2021C4 ???????? <--- same value in CONFIG file
034224 ????????
Max Payne
SLES-50325 | 0000009149b1198d | 2 | cmd: 0x0 cmd: 0x0
Code:
00341400 00 00 00 91 49 B1 19 8D ...'I±..
00341410 00 00 00 00 00 33 AC B8 00 00 00 02 00 00 00 00 .....3¬¸........
At offset 0x33ACB8 (2 entries)
Code:
0033ACB0 00 00 00 00 00 00 00 00 ........
0033ACC0 00 52 E9 F4 00 00 00 00 00 00 00 00 00 03 41 44 .Réô..........AD
0033ACD0 00 00 00 00 00 00 00 00 00 52 EB 78 00 00 00 00 .........Rëx....
0033ACE0 00 00 00 00 00 03 40 68 ......@h
52E9F4 ???????? <--- same value in CONFIG file
034144 ???????? <--- converted to 3, wtf ?
52EB78 ???????? <--- same value in CONFIG file
034068 ???????? <--- converted to 2, wtf ?
CONFIG (official PS2 classics NPED00145)
Code:
00000000 3D 00 00 00 89 3D 00 00 01 00 00 00 F4 E9 52 00 =....=........R.
00000010 03 00 00 00 01 00 00 00 78 EB 52 00 02 00 00 00 ........x.R.....
00000020 00 00 00 00 53 4C 45 53 2D 35 30 33 32 35 ....SLES-50325
Max Payne
SLUS-20230 | 00000053a955f9f5 | 2 | cmd: 0x0 cmd: 0x0
Code:
0033E6F0 00 00 00 53 A9 55 F9 F5 00 00 00 00 00 33 B5 D0 ...S©Uùõ.....3µÐ
0033E700 00 00 00 02 00 00 00 00 ........
At offset 0x33B5D0 (2 entries)
Code:
0033B5D0 00 00 00 00 00 00 00 00 00 52 E6 E4 00 00 00 00 .........Ræä....
0033B5E0 00 00 00 00 00 03 41 44 00 00 00 00 00 00 00 00 ......AD........
0033B5F0 00 52 E8 68 00 00 00 00 00 00 00 00 00 03 40 68 .Rèh..........@h
52E6E4 ???????? <--- same value in CONFIG file
034144 ???????? <--- converted to 3, wtf ?
52E868 ???????? <--- same value in CONFIG file
034068 ???????? <--- converted to 2, wtf ?
CONFIG (Kozarovv unnofficial PS2 classics)
Code:
00000000 3D 00 00 00 89 3D 00 00 01 00 00 00 E4 E6 52 00 =....=........R.
00000010 03 00 00 00 01 00 00 00 68 E8 52 00 02 00 00 00 ........x.R.....
00000020 00 00 00 00 ....