mirror of
https://github.com/TomHarte/CLK.git
synced 2025-08-07 23:25:00 +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);
|
displacement(Operation::JP, DataSize::Byte);
|
||||||
} else {
|
} else {
|
||||||
immediate(Operation::PUSH, DataSize::Byte);
|
immediate(Operation::PUSH, DataSize::Byte);
|
||||||
|
operation_size_ = data_size_;
|
||||||
}
|
}
|
||||||
break;
|
break;
|
||||||
case 0x6b:
|
case 0x6b:
|
||||||
|
@@ -327,7 +327,7 @@ private:
|
|||||||
set(operation);
|
set(operation);
|
||||||
source_ = Source::Immediate;
|
source_ = Source::Immediate;
|
||||||
phase_ = Phase::DisplacementOrOperand;
|
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.
|
/// Handles far CALL and far JMP — fixed four or six byte operand operations.
|
||||||
|
Reference in New Issue
Block a user