Post interesante !!

siguiendo con el tema del release del source code de neokit en maxconsole alguien ha publicao esto.

Es el header k gst ha añadido a los roms:

Como ya pensabamos algunos ese source code iba a dar mucho de si

-----------------------------
typedef struct _XGFILEHEADER {
DWORD dwJmpInst;
UCHAR NintendoLogo[0x9C];
UCHAR GameTitle[12];
DWORD GameCode;
WORD MakerCode;
UCHAR Const96H;
UCHAR MainUnitCode;
UCHAR DeviceType;
// XGFILEATTR is 7 bytes long.
XGFILEATTR XGFileAttr; // XGFile attribute area.
UCHAR MaskRomVersionNumber;
UCHAR ComplementCheck; // The 2's complement of the total of the data stored in offset A0h ~ BCh plus 19h is stored in this location.
// From GameTitle to XGFileAttr
XGFILEATTREX XGFileAttrEx; // XGFile attribute expanded area. reserved for future use.
// Now set to zero.
} XGFILEHEADER, *PXGFILEHEADER;

typedef struct _XGFILEATTR {
UCHAR uRomSizeLow; // Lower 8 bit size of ROM.
UCHAR uRomSizeHigh; // Higher 8 bit size of ROM.
UCHAR uRomOffsetNextLow; // all bit set to 0 means no rom after it.
UCHAR uRomOffsetNextHigh; // all bit set to 0 means no rom after it.
UCHAR uSaverSize; // Saver of rom in block.
UCHAR uFileAttr; // file attribute (low 4 bit), and Saver Type (upper 4 bit)
UCHAR uFunction; // function bit set to 1 means enable, 0 means disable.
} XGFILEATTR, *PXGFILEATTR;

typedef struct _XGFILEATTREX {
WORD wExFunction;
} XGFILEATTREX, *PXGFILEATTREX;

//Sample Analysis from Super Mario 64 DS GST dump


2E00 00EA //DWORD dwJmpInst;

24FFAE5144656D6F5F312E305375706572204D6172696F2036
342044
530A2020202020202020000000000000000000000000000000
000000
00000000000000000000000000000000000000000000000000
000000
00000000000000000000000000000000000000000000000000
000000
00000000000000000000000000000000000000000000000000
000000
00000000000000000000000000000000 //UCHAR NintendoLogo[0x9C];
//NOTE: GST seem to use this section to store data about the game, in this example it containing //'$..QDemo_1.0Super Mario 64 DS. ' maybe for neoflash or a custom tool to read??

532E4D4152494F3634445300 //UCHAR GameTitle[12]; (S.MARIO64DS.)
41534D45 //DWORD GameCode; (ASME)
3031 //WORD MakerCode; (01 - Nintendo)

96 //UCHAR Const96H;
00 //UCHAR MainUnitCode;
00 //UCHAR DeviceType;

07 01 06 00 00 00 00 //XGFILEATTR XGFileAttr;
00 //UCHAR MaskRomVersionNumber;
FF //UCHAR ComplementCheck;
00 00 //XGFILEATTREX XGFileAttrEx;
----------------------------------------------------

post original:
http://forums.maxconsole.net/showthread.php?threadid=6604&perpage=15&pagenumber=2
0 respuestas