micro-opt

This commit is contained in:
folkert van heusden 2022-04-01 10:00:43 +02:00
parent 9a18221229
commit f1a2216588

View file

@ -1084,7 +1084,7 @@ bool cpu::single_operand_instructions(const uint16_t instr)
uint16_t a = getGAMAddress(dst_mode, dst_reg, false, false); uint16_t a = getGAMAddress(dst_mode, dst_reg, false, false);
uint16_t v = b -> read(a, false, true); uint16_t v = b -> read(a, false, true);
setPSW_n(SIGN(v, word_mode)); setPSW_n(SIGN(v, false));
setPSW_z(v == 0); setPSW_z(v == 0);
setPSW_v(false); setPSW_v(false);
@ -1099,7 +1099,7 @@ bool cpu::single_operand_instructions(const uint16_t instr)
// retrieve word from '15/14'-stack // retrieve word from '15/14'-stack
uint16_t v = popStack(); uint16_t v = popStack();
setPSW_n(SIGN(v, word_mode)); setPSW_n(SIGN(v, false));
setPSW_z(v == 0); setPSW_z(v == 0);
setPSW_v(false); setPSW_v(false);
@ -1145,6 +1145,7 @@ bool cpu::single_operand_instructions(const uint16_t instr)
put_result(a, dst_mode, dst_reg, word_mode, vl); put_result(a, dst_mode, dst_reg, word_mode, vl);
} }
break; break;
default: default: