asmachina 0.1.0

Machine W emulator core - 16-bit architecture with full instruction set support
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
use super::MachineW;

impl MachineW {
    pub fn set_input_buffer(&mut self, inputs: Vec<u16>) {
        self.input_buffer = inputs;
        self.input_buffer.reverse();
    }

    pub fn get_output_buffer(&self) -> &[u16] {
        &self.output_buffer
    }

    pub fn clear_output_buffer(&mut self) {
        self.output_buffer.clear();
    }
}