Author: Garry Carroll
Posted: Fri Jan 13, 2017 5:34 pm (GMT 5.5)
You are seeing 06E because the sum is a positive number. The packed number is x'065C' which unpacks as C'6E', because X'C5' whicnis the last byte unpacked is the letter 'E'.
What you need to do, after the
instruction is to make the last digit printable as a number. This is achieved by adding the instruction
after the UNPK.
Garry
_________________
Everyone's entitled to ONE fatal mistake.....
Posted: Fri Jan 13, 2017 5:34 pm (GMT 5.5)
You are seeing 06E because the sum is a positive number. The packed number is x'065C' which unpacks as C'6E', because X'C5' whicnis the last byte unpacked is the letter 'E'.
What you need to do, after the
Code: |
FINISH UNPK OUTNUM,TOTAL |
Code: |
OI UNPACK+1, X'F0' |
Garry
_________________
Everyone's entitled to ONE fatal mistake.....