Post Reply 
HP41UC: User-Code File Converter / Compiler / De-compiler / Barcode Generator
09-12-2016, 02:13 PM (This post was last modified: 09-12-2016 02:24 PM by leoduran.)
Post: #18
RE: HP41UC: User-Code File Converter / Compiler / De-compiler / Barcode Generator
(09-12-2016 07:09 AM)Dieter Wrote:  
(09-12-2016 12:04 AM)leoduran Wrote:  Well, I recently refactored the source to make it easy to add XROMs, so adding the "Card Reader" was not painful at all.

Great – thank you very much.

(09-12-2016 12:04 AM)leoduran Wrote:  2) The Card Reader (module #30) is added to the list of supported XROMs.

Indeed the compiler recognizes card reader commands like RDTAX or 7DSP2. But decompiling a resulting .raw file generates a listing that only includes XROM commands for these functions, while e.g. printer commands have their correct names.

Example:

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

Store this as test.txt and compile it: hp41uc /t=test /r /n /k
This produces test.raw.
Decompile this again: hp41uc /r=test /t /n
and get this new test.txt:

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

Hmmm...

Dieter
Dieter,
I just tried your compile/decomplie sequences and the decompiler said this:
Code:
 01 LBL "PRDTA"
 02 1.004
 03 RDTAX
 04 RCL 03
 05 RCL 04
 06 *
 07 PRX
 08 RTN
 09 END

Did you by chance add a "/x30" switch to the decompiler, like this:
hp41uc /r=test /t /n /x30

Attached is "dieter.txt" showing the results I observed.
Leo.


Attached File(s)
.txt  dieter.txt (Size: 575 bytes / Downloads: 15)
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 - leoduran - 09-12-2016 02:13 PM



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