micro opt
This commit is contained in:
parent
c20b9554d8
commit
5ea14bddd3
1 changed files with 3 additions and 6 deletions
9
cpu.cpp
9
cpu.cpp
|
@ -1321,16 +1321,16 @@ bool cpu::single_operand_instructions(const uint16_t instr)
|
|||
// retrieve word from '15/14'-stack
|
||||
uint16_t v = popStack();
|
||||
|
||||
uint16_t a = 0xffff;
|
||||
|
||||
bool set_flags = true;
|
||||
|
||||
if (dst_mode == 0)
|
||||
setRegister(dst_reg, true, v);
|
||||
else {
|
||||
a = getGAMAddress(dst_mode, dst_reg, false, false);
|
||||
uint16_t a = getGAMAddress(dst_mode, dst_reg, false, false);
|
||||
|
||||
set_flags = a != 0177776;
|
||||
|
||||
b -> write(a, false, v, true); // put in '13/12' address space
|
||||
}
|
||||
|
||||
if (set_flags) {
|
||||
|
@ -1339,9 +1339,6 @@ bool cpu::single_operand_instructions(const uint16_t instr)
|
|||
setPSW_v(false);
|
||||
}
|
||||
|
||||
if (dst_mode != 0)
|
||||
b -> write(a, false, v, true); // put in '13/12' address space
|
||||
|
||||
break;
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue