The operation 0x5000..=0x5FFF should compare two registers. Also the pattern match could be 0x5000..=0x5FF0 as the last byte is not used by this operation.
|
0x5000..=0x5FFF => { self.se(x, y); }, |
One possible solution:
0x5000..=0x5FF0 => { self.se(x, self.registers[y as usize]); },
The operation
0x5000..=0x5FFFshould compare two registers. Also the pattern match could be0x5000..=0x5FF0as the last byte is not used by this operation.code/ch5/ch5-cpu4/src/main.rs
Line 33 in 19c4349
One possible solution: