diff --git a/src/device/buff.rs b/src/device/buff.rs index 2233be2..2573b2b 100644 --- a/src/device/buff.rs +++ b/src/device/buff.rs @@ -21,16 +21,9 @@ impl Device for BuffDevice { let slot = (port & 0xF) as usize; Ok(self.buffer[slot]) } - fn dei2(&mut self, _vm: &mut Uxn, port: u8) -> Result { - let slot = (port & 0xF) as usize; - Ok(0) - } fn deo1(&mut self, _vm: &mut Uxn, port: u8, val: u8) -> Result<(), DeviceError> { let slot = (port & 0xF) as usize; - Ok(()) - } - fn deo2(&mut self, _vm: &mut Uxn, port: u8, val: u16) -> Result<(), DeviceError> { - let slot = (port & 0xF) as usize; + self.buffer[slot as usize] = val; Ok(()) } }