Post Reply 
[HP4x] ROM Disassembly
03-03-2015, 10:10 AM (This post was last modified: 03-11-2015 08:40 AM by Bruno.)
Post: #1
[HP4x] ROM Disassembly
Hi all,

by chance, I found this website providing the full entries for the HP49G ROM 1.24 (about 24000 symbols!), and a pretty full list for the HP48SX (9000 symbols).
As explained by the author, the 49G symbols are the real symbols used by the HP's developers.
And I think the HP48's symbols are extracted by the same way (from ROM's objects files) and are the true symbols names used by the HP's developers.

This give me the idea for two new projects:
- Disassembling the HP48 and HP49 ROMs with SadHp and those big symbols lists
- Increase and update the Carsten's Entries Database (see my other thread about that)

After some work on the 'ALLROM48' file, I've produced a ready to use symbol file with SadHp (see attached files),
and discovered some interesting things:

- This symbols provide from one of the following ROM revision A,B,C or D, but I can’t say which one.

- The ALLROM48 (& ALLROM49 also) file do not contain only entries, but also DEFINES,CONSTANTS,ROMPTR and object files names used to produce the ROM binary object.
It was fastidious to sort out this file, but this give me a 'quick' overview on how the source code and the ROM have been organized. Smile

- Curiously, this file does not contain all of the symbols, even a few supported entries doesn't appears, and there are some 'holes'.

For now, if it was easy with SadHp to disassemble the HP48SX's ROMs, the HP48GX's ROMs disassembly require additional work:

- Replace in my file 'All symbols.txt' all of the 48SX addresses by the addresses in the Mika's '.symbols.gx' file.
- Remove the 7ffff limitation to allow disassembly of the whole GX ROM.

If anyone have time to help me, He is welcome Smile

In the attached archive, you can find the following files useful for the HP48SX/GX ROM disassembly:

[SX UPDATE 3]
- SXSymbolsHP.txt: ALLROM48 & HPSupported Entries mixed together
- SXSymbolsHP2.txt Same as above plus User commands was marked as supported entries.
- SXSymbolsMika&ALLHP.txt: ALLROM48 & Mika's Symbols mixed together
- SXSymbolsMika&ALLHP Duplicates removed.txt: ALLROM48 & Mika's Symbols mixed together with duplicate entries (by address) removed - DEFINES.txt: contain some definitions and constants extracted from the 'ALLROM48' file (very interesting)
- ROMPTR.txt: all ROMPTR symbols for libraries 0F0, 700 and 002, extracted from the 'ALLROM48' file
- ObjFiles.txt: Generated object file names that produced the ROM binary, extracted from the 'ALLROM48' file

[GX UPDATE 4]
- GXSymbolsHP.txt: ALLROM48 & HPSupported Entries & RAMEntries mixed together ( SX addresses replaced by GX addresses using Mika's symbol files).
- SXGXEntriesCrossReference.csv: Address cross reference beetween SX RevE and GX RevM.

Here is a sample that you could expect using SadHp with my symbols file:

Code:
ASSEMBLE
09946   =File:r.config.o                     -----------  Object File Name  -----------
09946   =INITCARDS    ( Version dependant )  -----------  Mika's entry name -----------
09946   =Chipconfig                          -----------  Official HP name  -----------
09946 843         ST=0    3
09949 840         ST=0    0
0994C 7322        GOSUB    =COMPCONFCRC

Enjoy Smile
Bruno


Attached File(s)
.zip  HP48SXSymbols.zip (Size: 286.12 KB / Downloads: 17)
.zip  HP48GXSymbols.zip (Size: 68.75 KB / Downloads: 22)
Find all posts by this user
Quote this message in a reply
Post Reply 


Messages In This Thread
[HP4x] ROM Disassembly - Bruno - 03-03-2015 10:10 AM
RE: [HP4x] ROM Disassembly - Han - 03-03-2015, 01:19 PM
RE: [HP4x] ROM Disassembly - Han - 03-03-2015, 01:55 PM
RE: [HP4x] ROM Disassembly - Bruno - 03-04-2015, 08:19 AM
RE: [HP4x] ROM Disassembly - Han - 03-04-2015, 09:21 AM
RE: [HP4x] ROM Disassembly - Han - 03-04-2015, 09:15 AM
RE: [HP4x] ROM Disassembly - Bruno - 03-04-2015, 10:22 AM
RE: [HP4x] ROM Disassembly - Bruno - 03-05-2015, 10:15 AM
RE: [HP4x] ROM Disassembly - Bruno - 03-05-2015, 01:15 PM
RE: [HP4x] ROM Disassembly - Han - 03-05-2015, 02:12 PM
RE: [HP4x] ROM Disassembly - Bruno - 03-05-2015, 02:16 PM
RE: [HP4x] ROM Disassembly - Han - 03-05-2015, 02:27 PM
RE: [HP4x] ROM Disassembly - Bruno - 03-05-2015, 03:02 PM
RE: [HP4x] ROM Disassembly - Han - 03-05-2015, 09:20 PM
RE: [HP4x] ROM Disassembly - Han - 03-09-2015, 03:13 PM
RE: [HP4x] ROM Disassembly - Bruno - 03-10-2015, 07:54 AM
RE: [HP4x] ROM Disassembly - Bruno - 03-10-2015, 08:10 AM
RE: [HP4x] ROM Disassembly - Bruno - 03-11-2015, 08:40 AM
RE: [HP4x] ROM Disassembly - Han - 03-11-2015, 06:23 PM
RE: [HP4x] ROM Disassembly - Bruno - 03-12-2015, 10:51 AM
RE: [HP4x] ROM Disassembly - Han - 03-13-2015, 05:36 AM
RE: [HP4x] ROM Disassembly - Han - 03-23-2015, 04:11 PM
RE: [HP4x] ROM Disassembly - Joe Horn - 03-23-2015, 08:03 PM
RE: [HP4x] ROM Disassembly - Han - 03-23-2015, 09:10 PM
RE: [HP4x] ROM Disassembly - rprosperi - 03-23-2015, 11:14 PM



User(s) browsing this thread: 1 Guest(s)