Pterodactyl v1.0.0
Brandon Wilson

>What is it?
This is a little C# thing to aid in disassembling Z80 TI graphing calculator OSes in 8XU format alongside IDA Pro, a professional disassembler.

>How exactly does it help me?
It will take a list of BCALL equates (in "equates.inc"), RAM equates (in "RAM.txt"), and an 8XU you supply and run through them to create IDC scripts for use with IDA Pro which will automatically supply labels and codepoints for all OS pages (up to 19 as of OS 2.55MP).

>How do I use it?
You can run make.bat from the command line to see what to pass to it.

Basically, you need to supply the 8XU you want to disassemble and a couple of key memory addresses (in hexadecimal, 4 characters):

make [filename of 8XU without extension] [end of BCALL jump table] [start of page 0 table] [end of page 0 table]

So as an example, you could place the OS 2.55MP 8XU in this directory (named 84Plus_2.55MP.8xu in this example) and enter:

make 84Plus_2.55MP 54AF 2B6B 3FE7

(These are the correct addresses for OS 2.55MP.)

Doing this will create an "84Plus_2.55MP" directory with many files in it. The ones you need to concern yourself with are the page**.bin and page**.idc files.

You can open each .bin file in IDA Pro and supply a RAM segment at 0x8000 of size 0x8000, a ROM segment (at 0x0000 for page00.bin, 0x4000 for all others) of size 0x4000, and a loading offset (0x0000 for page00.bin, 0x4000 for all others).

After you do this, go to the Edit menu and select "Create segment" and create a segment called "Page0" at 0x0000 of size 0x4000.

You can now go to the File menu and select "IDC file" and select the IDC file for the page you're disassembling (such as page00.idc). It will automatically set labels for all page 0 calls and BCALLs as well as RAM equates.

>How do I customize it?
You can add BCALL names or change existing ones by modifying equates.inc in this directory.
You can also add or modify RAM equates by changing the RAM.txt file.

For further customization, you can just change the C# source (but be warned, it's a real mess).

>What else?
That's about it.

>Why "Pterodactyl"?
I've wanted to name something "Pterodactyl" for years, so here it is.

>How can I contact you?
brandonw.net, brandonlw@gmail.com, etc.
