dogamak / ttk91-rs

Crate for reading, writing, compiling and executing TTK91 code.
0 stars 0 forks source link

Provide input devices for reading integers and bytes with StdIo input handler. #13

Closed dogamak closed 4 years ago

dogamak commented 4 years ago

This PR implements two input devices for the emulator::StdIo input handler. The device number 0 reads a line from the terminal and interprets it as an integer. The device number 1 reads a single byte from the terminal. Both of these input devices return 0xFFFF on error. All other input devices return 0 just like before.

Addresses issue #6.