|
|
|
|
|
by rwmj
1937 days ago
|
|
I just tried it on the ZX81 online emulator: http://www.zx81stuff.org.uk/zx81/jtyone.html You have to type the following sequence of keys: P [Shift]I 2 [Shift]H 3 2 [Shift]O -
[Shift]I [Shift]I 2 [Shift]H 3 2 [Shift]O
- 1 [Shift]O Enter
which should appear as: PRINT (2**32)-((2**32)-1)
It prints 0 which is not the expected answer! (The 0/0 at the bottom of the screeen is an OK message, the answer is printed in the top left corner). I think this isn't necessarily a bug, it's because the computer used something similar to modern single precision floating point.Also try this (SQR is entered as: [Shift]Enter H): PRINT SQR 0.25
On the emulator it looks like the bug has been fixed, but on early models of the real hardware it would give a completely bogus result.I think what was interesting was it used a kind of bytecode to run maths routines (similar to the Apple II's SWEET16 code). |
|