Test values are: 0, 1, 2, 126, 127, 128, 129, 130, 253, 254, 255
Values as expected are: 1, 2, 126, 127, 128, 130, 254
Values with results in differences are: 0, 129, 253, 255
Complete Output:
Code: Select all
Float value was: 0
exponent......: dez.: 0 hex: $00
exponent byte.: dez.: 128 hex: $80
mantissa value: dez.: 0.0
mantissa bytes: dez.: [0, 0, 0, 0] hex: $00, $00, $00, $00
matissa-sign..: hex: $00
binary........: hex: $80, $00, $00, $00, $00, $00
exponent | mantissa | mantissa-sign
10000000 00000000 00000000 00000000 00000000 00000000
Memory dump from $004f to $0054:
$004f: $00 (dez: 0) | $4f: *PV FLOATING POINT ACCUMULATOR #0 FPA0 EXPONENT
$0050: $00 (dez: 0) | $50: *PV FLOAT.ACCU #0 FPA0 MANTISSA MS Most Significant Byte
$0051: $00 (dez: 0) | $51: *PV FLOAT.ACCU #0 FPA0 MANTISSA NMS Next Most Significant Byte
$0052: $00 (dez: 0) | $52: *PV FLOAT.ACCU #0 FPA0 MANTISSA NLS Next Least Significant Byte
$0053: $00 (dez: 0) | $53: *PV FLOAT.ACCU #0 FPA0 MANTISSA LS Least Significant Byte
$0054: $00 (dez: 0) | $54: *PV FLOATING POINT ACCUMULATOR #0 FPA0 SIGN
*** ERROR:
in RAM...: $00, $00, $00, $00, $00, $00
Reference: $80, $00, $00, $00, $00, $00
-------------------------------------------------------------------------------
Float value was: 1
exponent......: dez.: 1 hex: $01
exponent byte.: dez.: 129 hex: $81
mantissa value: dez.: 0.5
mantissa bytes: dez.: [128, 0, 0, 0] hex: $80, $00, $00, $00
matissa-sign..: hex: $00
binary........: hex: $81, $80, $00, $00, $00, $00
exponent | mantissa | mantissa-sign
10000001 10000000 00000000 00000000 00000000 00000000
Memory dump from $004f to $0054:
$004f: $81 (dez: 129) | $4f: *PV FLOATING POINT ACCUMULATOR #0 FPA0 EXPONENT
$0050: $80 (dez: 128) | $50: *PV FLOAT.ACCU #0 FPA0 MANTISSA MS Most Significant Byte
$0051: $00 (dez: 0) | $51: *PV FLOAT.ACCU #0 FPA0 MANTISSA NMS Next Most Significant Byte
$0052: $00 (dez: 0) | $52: *PV FLOAT.ACCU #0 FPA0 MANTISSA NLS Next Least Significant Byte
$0053: $00 (dez: 0) | $53: *PV FLOAT.ACCU #0 FPA0 MANTISSA LS Least Significant Byte
$0054: $00 (dez: 0) | $54: *PV FLOATING POINT ACCUMULATOR #0 FPA0 SIGN
*** OK
-------------------------------------------------------------------------------
Float value was: 2
exponent......: dez.: 2 hex: $02
exponent byte.: dez.: 130 hex: $82
mantissa value: dez.: 0.5
mantissa bytes: dez.: [128, 0, 0, 0] hex: $80, $00, $00, $00
matissa-sign..: hex: $00
binary........: hex: $82, $80, $00, $00, $00, $00
exponent | mantissa | mantissa-sign
10000010 10000000 00000000 00000000 00000000 00000000
Memory dump from $004f to $0054:
$004f: $82 (dez: 130) | $4f: *PV FLOATING POINT ACCUMULATOR #0 FPA0 EXPONENT
$0050: $80 (dez: 128) | $50: *PV FLOAT.ACCU #0 FPA0 MANTISSA MS Most Significant Byte
$0051: $00 (dez: 0) | $51: *PV FLOAT.ACCU #0 FPA0 MANTISSA NMS Next Most Significant Byte
$0052: $00 (dez: 0) | $52: *PV FLOAT.ACCU #0 FPA0 MANTISSA NLS Next Least Significant Byte
$0053: $00 (dez: 0) | $53: *PV FLOAT.ACCU #0 FPA0 MANTISSA LS Least Significant Byte
$0054: $00 (dez: 0) | $54: *PV FLOATING POINT ACCUMULATOR #0 FPA0 SIGN
*** OK
-------------------------------------------------------------------------------
...
Float value was: 126
exponent......: dez.: 7 hex: $07
exponent byte.: dez.: 135 hex: $87
mantissa value: dez.: 0.984375
mantissa bytes: dez.: [252, 0, 0, 0] hex: $fc, $00, $00, $00
matissa-sign..: hex: $00
binary........: hex: $87, $fc, $00, $00, $00, $00
exponent | mantissa | mantissa-sign
10000111 11111100 00000000 00000000 00000000 00000000
Memory dump from $004f to $0054:
$004f: $87 (dez: 135) | $4f: *PV FLOATING POINT ACCUMULATOR #0 FPA0 EXPONENT
$0050: $fc (dez: 252) | $50: *PV FLOAT.ACCU #0 FPA0 MANTISSA MS Most Significant Byte
$0051: $00 (dez: 0) | $51: *PV FLOAT.ACCU #0 FPA0 MANTISSA NMS Next Most Significant Byte
$0052: $00 (dez: 0) | $52: *PV FLOAT.ACCU #0 FPA0 MANTISSA NLS Next Least Significant Byte
$0053: $00 (dez: 0) | $53: *PV FLOAT.ACCU #0 FPA0 MANTISSA LS Least Significant Byte
$0054: $00 (dez: 0) | $54: *PV FLOATING POINT ACCUMULATOR #0 FPA0 SIGN
*** OK
-------------------------------------------------------------------------------
Float value was: 127
exponent......: dez.: 7 hex: $07
exponent byte.: dez.: 135 hex: $87
mantissa value: dez.: 0.9921875
mantissa bytes: dez.: [254, 0, 0, 0] hex: $fe, $00, $00, $00
matissa-sign..: hex: $00
binary........: hex: $87, $fe, $00, $00, $00, $00
exponent | mantissa | mantissa-sign
10000111 11111110 00000000 00000000 00000000 00000000
Memory dump from $004f to $0054:
$004f: $87 (dez: 135) | $4f: *PV FLOATING POINT ACCUMULATOR #0 FPA0 EXPONENT
$0050: $fe (dez: 254) | $50: *PV FLOAT.ACCU #0 FPA0 MANTISSA MS Most Significant Byte
$0051: $00 (dez: 0) | $51: *PV FLOAT.ACCU #0 FPA0 MANTISSA NMS Next Most Significant Byte
$0052: $00 (dez: 0) | $52: *PV FLOAT.ACCU #0 FPA0 MANTISSA NLS Next Least Significant Byte
$0053: $00 (dez: 0) | $53: *PV FLOAT.ACCU #0 FPA0 MANTISSA LS Least Significant Byte
$0054: $00 (dez: 0) | $54: *PV FLOATING POINT ACCUMULATOR #0 FPA0 SIGN
*** OK
-------------------------------------------------------------------------------
Float value was: 128
exponent......: dez.: 8 hex: $08
exponent byte.: dez.: 136 hex: $88
mantissa value: dez.: 0.5
mantissa bytes: dez.: [128, 0, 0, 0] hex: $80, $00, $00, $00
matissa-sign..: hex: $00
binary........: hex: $88, $80, $00, $00, $00, $00
exponent | mantissa | mantissa-sign
10001000 10000000 00000000 00000000 00000000 00000000
Memory dump from $004f to $0054:
$004f: $88 (dez: 136) | $4f: *PV FLOATING POINT ACCUMULATOR #0 FPA0 EXPONENT
$0050: $80 (dez: 128) | $50: *PV FLOAT.ACCU #0 FPA0 MANTISSA MS Most Significant Byte
$0051: $00 (dez: 0) | $51: *PV FLOAT.ACCU #0 FPA0 MANTISSA NMS Next Most Significant Byte
$0052: $00 (dez: 0) | $52: *PV FLOAT.ACCU #0 FPA0 MANTISSA NLS Next Least Significant Byte
$0053: $00 (dez: 0) | $53: *PV FLOAT.ACCU #0 FPA0 MANTISSA LS Least Significant Byte
$0054: $00 (dez: 0) | $54: *PV FLOATING POINT ACCUMULATOR #0 FPA0 SIGN
*** OK
-------------------------------------------------------------------------------
Float value was: 129
exponent......: dez.: 8 hex: $08
exponent byte.: dez.: 136 hex: $88
mantissa value: dez.: 0.50390625
mantissa bytes: dez.: [128, 128, 0, 0] hex: $80, $80, $00, $00
matissa-sign..: hex: $00
binary........: hex: $88, $80, $80, $00, $00, $00
exponent | mantissa | mantissa-sign
10001000 10000000 10000000 00000000 00000000 00000000
Memory dump from $004f to $0054:
$004f: $88 (dez: 136) | $4f: *PV FLOATING POINT ACCUMULATOR #0 FPA0 EXPONENT
$0050: $81 (dez: 129) | $50: *PV FLOAT.ACCU #0 FPA0 MANTISSA MS Most Significant Byte
$0051: $00 (dez: 0) | $51: *PV FLOAT.ACCU #0 FPA0 MANTISSA NMS Next Most Significant Byte
$0052: $00 (dez: 0) | $52: *PV FLOAT.ACCU #0 FPA0 MANTISSA NLS Next Least Significant Byte
$0053: $00 (dez: 0) | $53: *PV FLOAT.ACCU #0 FPA0 MANTISSA LS Least Significant Byte
$0054: $00 (dez: 0) | $54: *PV FLOATING POINT ACCUMULATOR #0 FPA0 SIGN
*** ERROR:
in RAM...: $88, $81, $00, $00, $00, $00
Reference: $88, $80, $80, $00, $00, $00
-------------------------------------------------------------------------------
Float value was: 130
exponent......: dez.: 8 hex: $08
exponent byte.: dez.: 136 hex: $88
mantissa value: dez.: 0.5078125
mantissa bytes: dez.: [130, 0, 0, 0] hex: $82, $00, $00, $00
matissa-sign..: hex: $00
binary........: hex: $88, $82, $00, $00, $00, $00
exponent | mantissa | mantissa-sign
10001000 10000010 00000000 00000000 00000000 00000000
Memory dump from $004f to $0054:
$004f: $88 (dez: 136) | $4f: *PV FLOATING POINT ACCUMULATOR #0 FPA0 EXPONENT
$0050: $82 (dez: 130) | $50: *PV FLOAT.ACCU #0 FPA0 MANTISSA MS Most Significant Byte
$0051: $00 (dez: 0) | $51: *PV FLOAT.ACCU #0 FPA0 MANTISSA NMS Next Most Significant Byte
$0052: $00 (dez: 0) | $52: *PV FLOAT.ACCU #0 FPA0 MANTISSA NLS Next Least Significant Byte
$0053: $00 (dez: 0) | $53: *PV FLOAT.ACCU #0 FPA0 MANTISSA LS Least Significant Byte
$0054: $00 (dez: 0) | $54: *PV FLOATING POINT ACCUMULATOR #0 FPA0 SIGN
*** OK
-------------------------------------------------------------------------------
...
Float value was: 253
exponent......: dez.: 8 hex: $08
exponent byte.: dez.: 136 hex: $88
mantissa value: dez.: 0.98828125
mantissa bytes: dez.: [252, 128, 0, 0] hex: $fc, $80, $00, $00
matissa-sign..: hex: $00
binary........: hex: $88, $fc, $80, $00, $00, $00
exponent | mantissa | mantissa-sign
10001000 11111100 10000000 00000000 00000000 00000000
Memory dump from $004f to $0054:
$004f: $88 (dez: 136) | $4f: *PV FLOATING POINT ACCUMULATOR #0 FPA0 EXPONENT
$0050: $fd (dez: 253) | $50: *PV FLOAT.ACCU #0 FPA0 MANTISSA MS Most Significant Byte
$0051: $00 (dez: 0) | $51: *PV FLOAT.ACCU #0 FPA0 MANTISSA NMS Next Most Significant Byte
$0052: $00 (dez: 0) | $52: *PV FLOAT.ACCU #0 FPA0 MANTISSA NLS Next Least Significant Byte
$0053: $00 (dez: 0) | $53: *PV FLOAT.ACCU #0 FPA0 MANTISSA LS Least Significant Byte
$0054: $00 (dez: 0) | $54: *PV FLOATING POINT ACCUMULATOR #0 FPA0 SIGN
*** ERROR:
in RAM...: $88, $fd, $00, $00, $00, $00
Reference: $88, $fc, $80, $00, $00, $00
-------------------------------------------------------------------------------
Float value was: 254
exponent......: dez.: 8 hex: $08
exponent byte.: dez.: 136 hex: $88
mantissa value: dez.: 0.9921875
mantissa bytes: dez.: [254, 0, 0, 0] hex: $fe, $00, $00, $00
matissa-sign..: hex: $00
binary........: hex: $88, $fe, $00, $00, $00, $00
exponent | mantissa | mantissa-sign
10001000 11111110 00000000 00000000 00000000 00000000
Memory dump from $004f to $0054:
$004f: $88 (dez: 136) | $4f: *PV FLOATING POINT ACCUMULATOR #0 FPA0 EXPONENT
$0050: $fe (dez: 254) | $50: *PV FLOAT.ACCU #0 FPA0 MANTISSA MS Most Significant Byte
$0051: $00 (dez: 0) | $51: *PV FLOAT.ACCU #0 FPA0 MANTISSA NMS Next Most Significant Byte
$0052: $00 (dez: 0) | $52: *PV FLOAT.ACCU #0 FPA0 MANTISSA NLS Next Least Significant Byte
$0053: $00 (dez: 0) | $53: *PV FLOAT.ACCU #0 FPA0 MANTISSA LS Least Significant Byte
$0054: $00 (dez: 0) | $54: *PV FLOATING POINT ACCUMULATOR #0 FPA0 SIGN
*** OK
-------------------------------------------------------------------------------
Float value was: 255
exponent......: dez.: 8 hex: $08
exponent byte.: dez.: 136 hex: $88
mantissa value: dez.: 0.99609375
mantissa bytes: dez.: [254, 128, 0, 0] hex: $fe, $80, $00, $00
matissa-sign..: hex: $00
binary........: hex: $88, $fe, $80, $00, $00, $00
exponent | mantissa | mantissa-sign
10001000 11111110 10000000 00000000 00000000 00000000
Memory dump from $004f to $0054:
$004f: $88 (dez: 136) | $4f: *PV FLOATING POINT ACCUMULATOR #0 FPA0 EXPONENT
$0050: $ff (dez: 255) | $50: *PV FLOAT.ACCU #0 FPA0 MANTISSA MS Most Significant Byte
$0051: $00 (dez: 0) | $51: *PV FLOAT.ACCU #0 FPA0 MANTISSA NMS Next Most Significant Byte
$0052: $00 (dez: 0) | $52: *PV FLOAT.ACCU #0 FPA0 MANTISSA NLS Next Least Significant Byte
$0053: $00 (dez: 0) | $53: *PV FLOAT.ACCU #0 FPA0 MANTISSA LS Least Significant Byte
$0054: $00 (dez: 0) | $54: *PV FLOATING POINT ACCUMULATOR #0 FPA0 SIGN
*** ERROR:
in RAM...: $88, $ff, $00, $00, $00, $00
Reference: $88, $fe, $80, $00, $00, $00
-------------------------------------------------------------------------------
OK: [1, 2, 126, 127, 128, 130, 254]
Failed: [0, 129, 253, 255]
Are my reference values wrong? Has the used code part of my Emulation bugs?