Struct chip8_vm::vm::Vm [] [src]

pub struct Vm { /* fields omitted */ }

Virtual machine

The virtual machine manages state like its registers, the RAM, stack, screen pixels, pressed keys as well as timers and some internal state.

Methods

impl Vm
[src]

Creates a new Vm instance with default state

Loads the ROM contents from reader into RAM at the program start address

Returns True if the sound timer is active

Marks the key with index idx as being set

Marks they key with index idx as being unset

Executes remaining instructions since the last step

Returns the pixel rows of the screen

Prints the current screen pixels to stdout