1
0
mirror of https://github.com/TomHarte/CLK.git synced 2025-04-19 20:37:34 +00:00

PUSH always pushes a word.

This commit is contained in:
Thomas Harte 2025-04-02 23:24:00 -04:00
parent a9a72a767d
commit 1a68dcbc14
2 changed files with 2 additions and 1 deletions

View File

@ -194,6 +194,7 @@ std::pair<int, typename Decoder<model>::InstructionT> Decoder<model>::decode(
displacement(Operation::JP, DataSize::Byte);
} else {
immediate(Operation::PUSH, DataSize::Byte);
operation_size_ = data_size_;
}
break;
case 0x6b:

View File

@ -327,7 +327,7 @@ private:
set(operation);
source_ = Source::Immediate;
phase_ = Phase::DisplacementOrOperand;
operation_size_ = operand_size_ = operand_size;
operand_size_ = operand_size;
}
/// Handles far CALL and far JMP — fixed four or six byte operand operations.