mirror of
https://github.com/FranLMSP/rmg-001.git
synced 2026-08-05 17:50:04 -04:00
BIT instruction
This commit is contained in:
+3
-3
@@ -92,8 +92,8 @@ impl Bus {
|
||||
}
|
||||
|
||||
pub fn write_16bit(&mut self, address: u16, data: u16) {
|
||||
let bytes = data.to_be_bytes();
|
||||
self.write(address, bytes[1]);
|
||||
self.write(address + 1, bytes[0]);
|
||||
let bytes = data.to_le_bytes();
|
||||
self.write(address, bytes[0]);
|
||||
self.write(address + 1, bytes[1]);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user