HP-41 instruction print bug found
|
11-04-2019, 04:32 AM
Post: #1
|
|||
|
|||
HP-41 instruction print bug found
At least with the HP82162A printer an XROM instruction with postfix argument is not printed properly when executed from the keyboard.
Say you have an XROM FOO instruction that has its header marked as taking a numeric postfix argument. In this case the instruction code is the 2-byte XROM code and the argument is passed on the side in register B.X. The PRT5 routine (in the HP-IL module) is supposed to print the executed instruction. However the actual printing of the argument picks the postfix operand from the second byte of the 2-byte XROM code, not the one that was passed in B.X. If I invoke 'FOO 07' (where FOO is an XROM) and this instruction code is A3CC, it will print as "FOO IND 76", not "FOO 07". CC is 80 (IND), taking that away we have 4C which is 76 decimal. Is it possible to alter the HP-IL module image on the 41CL somehow? I imagine that the power on sequence could see if there is an HP-IL module inserted and then use the MMU to map an alternative (fixed) ROM image over it? The offending code is: Code: 953 1454 PFK35 630 C=M PUT ARGUMENT Here it assumes the second byte has the postfix operand, but that is not true for XROMs (RCR 2 is needed for XROMs). |
|||
« Next Oldest | Next Newest »
|
User(s) browsing this thread: 1 Guest(s)