Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- //------------------------------------------------
- //--- 010 Editor v7.0.2 Script File
- //
- // File: GoToFileRomAddress.1sc
- // Authors: Abystus
- // Version: 1.0
- // Purpose: Use game ROM address to go to file ROM address (RevX).
- // Category: Conversion
- // History:
- // 1.0 Initial Release.
- //------------------------------------------------
- // Define local variables
- int32 convAddress;
- int32 p1;
- int32 p2;
- // Get the game address to convert
- convAddress = InputNumber( "Go To File RevX ROM Address", "Game ROM Address","0x");
- p1 = 0x100000;
- p2 = 0xff800000;
- if( convAddress == 0 )
- return -1;
- if( convAddress >= p2 )
- {
- convAddress = (convAddress / 8) & 0xFFFFF;
- convAddress = convAddress + p1;
- else
- convAddress = (convAddress / 8) & 0xFFFFF;
- }
- StatusMessage("%X", convAddress);
- SetCursorPos(convAddress);
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement