mirror of
https://github.com/TomHarte/CLK.git
synced 2025-08-09 05:25:01 +00:00
PUSH always pushes a word.
This commit is contained in:
@@ -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:
|
||||
|
@@ -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.
|
||||
|
Reference in New Issue
Block a user