SXT opt
This commit is contained in:
parent
22d51ba515
commit
b8d0a08bcf
1 changed files with 2 additions and 2 deletions
2
cpu.cpp
2
cpu.cpp
|
@ -1398,7 +1398,7 @@ bool cpu::single_operand_instructions(const uint16_t instr)
|
||||||
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