Re: A83: length_program?
[Prev][Next][Index][Thread]
Re: A83: length_program?
The 83p file format has a word-long program length field at 46h-47h bytes
into the file. You can find this by (at a command prompt) typing "debug
filename" and typing "d 146 147" at the hyphen prompt. Open the windows
calculator, put it in scientific mode and in hex mode, type in the two
bytes (reversed) and change it to decimal. This is the length of your
program. BTW, you can quit debug with a "q" at the hyphen prompt.
Jeremy
On Sat, 18 Nov 2000 Waves65536@aol.com wrote:
>
> well the 'C' code wouldn't work unless you know the length of the header at
> the beginning of the file. i think there's also a 2byte checksum at the end
> of an 83p file. there's a file about this somewhere on ticalc about the 83p
> format. btw all devpac83 does is put an 83 program header on a binary image -
> it doesn't do any squishing itself. if you do 'tasm -80 -i -b myfile.asm
> myfile.bin' you will get a squished image, minus the 83p header. (the '-b'
> specifies a binary image.)
>
References: