@pndc interesting – I wouldn't have guessed that IN on the Spectrum even had a c...

@simontatham@hachyderm.io

@pndc interesting – I wouldn't have guessed that IN on the Spectrum even had a chance of being idempotent. I'd have expected that _surely_ there'd be an I/O port somewhere which would be updated as a side effect of reading.

But I suppose that's a thing you expect from UARTs above all, and the Speccy didn't have one. I do remember that the use of IN to read the keyboard would return a bitmap of the currently pressed keys rather than consuming a value from a stream.

It is a shame about RND. If only a machine had a true random number generator, there wouldn't be any question of whether RND updated some state or not! :-)