Rediscovery of "Get-Legacy-Number"

Hi,

David L. Price documented this in decodePC.sqr and I lost it in the Java version.

Comments in David's decodePC.sqr:

!*******************************************************************************
begin-procedure Get-Legacy-Number(:$out_Number)
!*******************************************************************************
! Code 0x11 (17) seems to be only used in older code. Any attempts to
! recreated this generates an 0x50 (80)... which is the regular number.
! Without multiple examples, it is next to impossible to determine how this is
! stored. Until I can, I will list examples here.
!
! 11 0000 0000 8000 0000 0000 0000 0000 = 128
! 11 0000 0000 0100 0000 0000 0000 0000 = 1





Original code stores the second Substring argument, i.e., decimal 1, as: 11 00 00 00 00 01 00 00 00 00 00 00 00 00 00 (just like David's comment).

A change to the code stores the second Substring argument as: 50 00 00 01 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00

Method PCdecode for case 11(hex) has been fixed in "decodePC.java PROGTXT is data type blob".

Reply