I'm trying to figure out the 8xp file structure in hopes of making a Python BASIC editor or something just for the heck of it. I'm a bit confused about how it works, though.
Here are three sample files, and what Python outputs when I read them:
Code:
Code:
and one exported from TokenIDE:
Code:
The linkguide on merth's website says that the first byte of the data section is equal to either x0B (Bh, 11) or x0D (Dh, 13), but in this code
Code:
the text '\x0b\' isn't located anywhere. How do I locate the data section here?
I'm also not entirely clear on how the checksum works, or how I can calculate the lower 16 bits of the data section.
Here are three sample files, and what Python outputs when I read them:
Code:
Disp 123
Output(1,1,"ABC"
--
b'**TI83F*\x1a\n\x00Created by SourceCoder 3 - sc.cemetech.net.\x00\r\x00\x1d\x00\x05TSTFILE\x00\x00\x00\x1d\x00\x1b\x00\xde123?\xde*ABC?\xe01+1+*ABC?1\x04A?\xdeA\xdd\n'
Code:
Disp 123
Disp "ABC"
Output(1,1,"ABC"
1->A
Disp A
--
b'**TI83F*\x1a\n\x00Created by SourceCoder 3 - sc.cemetech.net!\x00\r\x00\x10\x00\x05TESTFILE\x00\x00\x10\x00\x0e\x00\xde123?\xe01+1+*ABC\xdb\x06'
and one exported from TokenIDE:
Code:
Disp 123
Disp "ABC"
Output(1,1,"ABC"
1→A
Disp A
--b'**TI83F*\x1a\n\x00Merthsoft Token IDE\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00.\x00\r\x00\x1d\x00\x05TEST2\x00\x00\x00\x00\x00\x1d\x00\x1b\x00\xde123?\xde*ABC?\xe01+1+*ABC?1\x04A?\xdeA4\n'
The linkguide on merth's website says that the first byte of the data section is equal to either x0B (Bh, 11) or x0D (Dh, 13), but in this code
Code:
b'**TI83F*\x1a\n\x00Created by SourceCoder 3 - sc.cemetech.net!\x00\r\x00\x10\x00\x05TESTFILE\x00\x00\x10\x00\x0e\x00\xde123?\xe01+1+*ABC\xdb\x06'
the text '\x0b\' isn't located anywhere. How do I locate the data section here?
I'm also not entirely clear on how the checksum works, or how I can calculate the lower 16 bits of the data section.