Skip to content

Commit

Permalink
Return transmit key empty with the keyboard status
Browse files Browse the repository at this point in the history
  • Loading branch information
ivanizag committed Dec 13, 2021
1 parent 077b14f commit 7bc3f9e
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/kaypro_machine.rs
Original file line number Diff line number Diff line change
Expand Up @@ -175,7 +175,7 @@ impl Machine for KayproMachine {
let value = match port {

0x05 => self.keyboard.get_key(),
0x07 => if self.keyboard.is_key_pressed() {0x01} else {0x00},
0x07 => (if self.keyboard.is_key_pressed() {1} else {0}) + 0x04,

// Floppy controller
0x10 => self.floppy_controller.get_status(),
Expand All @@ -185,6 +185,7 @@ impl Machine for KayproMachine {
0x1c => self.system_bits,
_ => 0xca,
};

if self.trace_io && port != 0x13 && port != 0x07 && port != 0x1c {
println!("IN(0x{:02x} '{}') = 0x{:02x}", port, IO_PORT_NAMES[port as usize], value);
}
Expand Down

0 comments on commit 7bc3f9e

Please sign in to comment.