Re: LEX dump Message #9 Posted by Valentin Albillo on 24 Feb 2006, 4:43 a.m., in response to message #4 by Xavier LaRue
Hi, Xavier:
Xavier posted:
"Hi, the next question is surly how to dump lexfile :)
Do this should works : Using lif_utils ./lifget -f lexfl1.lif RPNLEX | hexdump and typing it into the 71B ?"
Sorry but I'm not familiar with lif_utils so I can't say. Seems probable that it would work, except for the fact that the MAKELEX versions I've seen all of them require to input a checksum at the end of each line of hex digits, which they use to check for input errors. If the 'hexdump' you mention does also output that checksum and it happens to be computed the same way as MAKELEX expects it, then it will work, but I can't say for sure.
The usual way of dumping LEX files in MAKELEX format was with the sister application DUMPLEX, also a BASIC program which would run in a barebones HP-71B, which would output the proper checksum digits as well. You can probably get it from the same source where you found MAKELEX, and it's certainly included in some CHHU issues.
"Another question, how do we remove a LEXfile ?"
Simply PURGE the lex file (i.e.: PURGE RPNLEX). If the file is secured, you'll need to UNSECURE it first, which you can do if the file is in RAM, but not if it's in ROM. Once purged, you'll lose all its keywords, polls, messages, etc, and if there are some programs in RAM which used them, they'll no longer work, the original lex function and statements being (temporarily) replaced by XWORD and XFN, respectively.
Best regards from V.
|