Post Reply 
HP41UC: User-Code File Converter / Compiler / De-compiler / Barcode Generator
09-13-2016, 07:08 PM (This post was last modified: 09-13-2016 07:38 PM by Dieter.)
Post: #29
RE: HP41UC: User-Code File Converter / Compiler / De-compiler / Barcode Generator
(09-13-2016 10:35 AM)leoduran Wrote:  Anyway, please try this one (attached). I expect the output to be:
(...)

Bingo – this time it seems to work:
...
flag[30]=1
XROM: module=30 function=3 count=32 list=11 flag=1
Decoded XROM function: RDTAX
XROM: module=29 function=20 count=32 list=11 flag=1
Decoded XROM function: PRX
97 bytes written.

Resulting txt file after decompiling the raw file:

Code:
 01 LBL "PRDTA"
 02 1.004
 03 RDTAX
 04 RCL 03
 05 RCL 04
 06 *
 07 PRX
 08 RTN
 09 END

I also tried some other card reader commands, and there was no problem either. VER was not accepted, so that's fine as well. This time everything seems to work as advertised. ;-)

BTW, there is one thing that could be improved.
Consider the original test.txt file after one command has been manually added:

Code:
01 LBL "PRDTA"
02 1.004
03 RDTAX
   7DSP2
04 RCL 03
05 RCL 04
06 *
07 PRX
08 RTN
09 END

This does not compile with option /n since the compiler seems to interpret the inital 7 of the 7DSP2 command as a line number. It doesn't compile without /n either since there is no command "01 LBL "TEST"". The only way to handle this is adding a dummy line number at 7DSP2.

It's essentially the same problem as with numeric constants under the same circumstances. The logic that detects line numbers and removes them seems to handle everything that starts with a numeric digit as a line number to remove. So "7DSP2" gets interpreted as line 7 with a "DSP2" command. This was OK if the line was "7 DSP2" (with a blank after the 7), but I think the current logic is a bit strict here. ;-)

Anyway, I don't want to complain. Thank you very much for all your efforts.

Dieter
Find all posts by this user
Quote this message in a reply
Post Reply 


Messages In This Thread
RE: HP41UC: User-Code File Converter / Compiler / De-compiler / Barcode Generator - Dieter - 09-13-2016 07:08 PM



User(s) browsing this thread: 1 Guest(s)