The following warnings occurred:
Warning [2] count(): Parameter must be an array or an object that implements Countable - Line: 795 - File: showthread.php PHP 7.4.33 (FreeBSD)
File Line Function
/showthread.php 795 errorHandler->error





Post Reply 
LBL and END handling on the PX41CX and in PX41CX_Interface.xls
11-12-2024, 07:45 AM (This post was last modified: 11-20-2024 06:55 AM by krischik.)
Post: #1
LBL and END handling on the PX41CX and in PX41CX_Interface.xls
Hello @agarza and @Pierre

I created a little test program mostly consisting of LBL statements and dumped it from my PX41CX. The program decodes on dm41.swissmicros like this:


Code:

PX41
08 4b000000000000 00000000000000 00000000001000 00000000000000 
0c 0000000000618e 1a70016919c18e 0000002c048000 00000000007000 
18c 00000000000000 00000000000000 09000000cc0020 542d2d3785ca01 
190 c801f800544553 54455354203630 543539c601f700 c401f600544553 
194 f5005445535437 0054455336c201 00544536c001f4 f2005435cc00f3 
198 02f2005a34cc00 cf6332cf6633cc 54455354300131 c000f8004c424c 
A: 09999999999000  B: 0000002c0480fd  C: 000000002c00fd
S: 00101010000000
M: 000018a5ff83d3  N: 00000000000000  G: 20
EOF

Code:
STACK = 0 0 0 0 0
; ALPHA = '                        '
; SIZE =  100
; A: 09999999999000  B: 0000002c0480fd  C: 000000002c00fd
; S: 00101010000000
; M: 000018a5ff83d3  N: 00000000000000  G: 20
; PRG = 19B .. 18E
LBL 'LBLTEST'       ; C000F8004C424C54455354
STO 00              ; 30
LBL 00              ; 01
STO 01              ; 31
LBL 99              ; CF63
STO 02              ; 32
LBL A               ; CF66
STO 03              ; 33
LBL 'Z'             ; CC02F2005A
STO 04              ; 34
LBL 'T'             ; CC00F20054
STO 05              ; 35
LBL 'TE'            ; CC00F3005445
STO 06              ; 36
LBL 'TES'           ; C001F400544553
STO 06              ; 36
LBL 'TEST'          ; C201F50054455354
STO 07              ; 37
LBL 'TEST5'         ; C401F6005445535435
STO 09              ; 39
LBL 'TEST 6'        ; C601F700544553542036
STO 00              ; 30
LBL 'TEST--7'       ; C801F800544553542D2D37
RTN                 ; 85
END                 ; CA0109
GLOBAL              ; CC
RCL 00              ; 20
END

I now have two Problems:

  1. I can't send the progam back to my PX-41CX. It just doesn't read.
  2. it won't decode properly with with PX41CX_Interface.xls.


I already analysed the the Visual Basic and noted a few bugs in the handling of LBL and END which I corrected in my own decoder (line 414 .. 424).

Why analysing I noticed that both LBL and END start with hex C followed by various status flags – which may or may not be hex 0 — which makes decoding them almost heuristic. This is pretty error prone. So I wonder if Receive has a problem in that area as well.

What I find especially interesting is the „0=compiled or 1=not compiled“ flag for the END command which I found in the hp41cx-prog-handbook.pdf. Does anybody know what precisely is compiled.

Regards

Martin

https://uiq3.sf.net/rpn-45/
Developer RPN-45, FX-602P Simulator, FX-603P Simulator
HP16C, HP35s, HP-Prime, FX-602P, FX-603P, PC-1403



Visit this user's website Find all posts by this user
Quote this message in a reply
Post Reply 


Messages In This Thread
LBL and END handling on the PX41CX and in PX41CX_Interface.xls - krischik - 11-12-2024 07:45 AM



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