SXT opt
This commit is contained in:
parent
22d51ba515
commit
b8d0a08bcf
1 changed files with 2 additions and 2 deletions
4
cpu.cpp
4
cpu.cpp
|
@ -1396,9 +1396,9 @@ bool cpu::single_operand_instructions(const uint16_t instr)
|
||||||
#endif
|
#endif
|
||||||
}
|
}
|
||||||
else { // SXT
|
else { // SXT
|
||||||
auto g_dst = getGAM(dst_mode, dst_reg, word_mode, rm_cur);
|
auto g_dst = getGAM(dst_mode, dst_reg, word_mode, rm_cur);
|
||||||
|
|
||||||
int32_t vl = -getPSW_n();
|
uint16_t vl = -getPSW_n();
|
||||||
|
|
||||||
if (put_result(g_dst, vl)) {
|
if (put_result(g_dst, vl)) {
|
||||||
setPSW_z(getPSW_n() == false);
|
setPSW_z(getPSW_n() == false);
|
||||||
|
|
Loading…
Add table
Reference in a new issue