rusty_mos::arch

Module machine

Source
Expand description

Machine related implementations.

ConstantsΒ§

FunctionsΒ§

  • Actually trigger the reboot of the board. But in QEMU, we choose to β€˜no-reboot’. So the simulation will exit if halt is called.
  • Put the character (whose size is 1 byte) into teh serial. Busy-wait if the serial thr is not empty. The '\r' will be added before a '\n'.
  • Get a character (whose size is 1 byte) from the serial. Zero will be returned if the data is not ready for reading.