HP-71 Compu-LS module
|
03-23-2017, 09:49 PM
(This post was last modified: 03-23-2017 09:59 PM by Dave Frederickson.)
Post: #100
|
|||
|
|||
RE: HP-71 Compu-LS module
So the answer is no. aLIFhdr does not handle binary file sizes correctly, half the time.
Here's the LIF file header from the LEX file ALPHANUM. Code: 41 4c 50 48 41 4e 55 4d 20 20 e2 08 00 00 00 02 The last four bytes are the Implementation Bytes and for a binary file these are the file size in nibbles. The bytes are in reverse order so the size is 0xBF, 191 nibbles, or 95.5 bytes. The 71 and DOS round this up to 96 bytes. I exported the file, using pyILPER and LIFUTILS, then using aLIFhdr created the 32-byte LIF file header. Code: 41 4c 50 48 41 20 20 20 20 20 e2 08 00 00 00 00 As you can see the file size has been rounded up to 0xC0, or 192 nibbles. Obviously this is incorrect, but what are the consequences? Dave |
|||
« Next Oldest | Next Newest »
|
User(s) browsing this thread: 8 Guest(s)