mirror of
https://github.com/Alvin-Zilverstand/bob16.git
synced 2026-11-21 12:52:59 +01:00
fix and instruction mask
This commit is contained in:
1 parent
188403fabd
commit
11d12ec3a3
1 file changed
+1
-1
@@ -243,7 +243,7 @@ void execute() {
|
||||
cpu.alu.accumulator = cpu.regFile[(cpu.ir >> 4) & 0x7] & cpu.regFile[(cpu.ir >> 1) & 0x7];
|
||||
break;
|
||||
case 1:
|
||||
cpu.alu.accumulator = cpu.regFile[(cpu.ir >> 4) & 0x7] & sext(cpu.ir & 0x1, 4);
|
||||
cpu.alu.accumulator = cpu.regFile[(cpu.ir >> 4) & 0x7] & sext(cpu.ir & 0xF, 4);
|
||||
break;
|
||||
case 2:
|
||||
if (cpu.ir & 0x1F) {
|
||||
|
||||
Reference in new issue
Block a user