mirror of
https://github.com/TomHarte/CLK.git
synced 2025-08-09 05:25:01 +00:00
Equivocate.
(Specifically: addresses cannot generally be obtained in advance, as they are often the product of registers, but things like displacements, immediate values and absolute addresses can)
This commit is contained in:
@@ -214,7 +214,8 @@ void Executor<model, BusHandler>::run_for_instructions(int count) {
|
|||||||
// rather than addresses; and (ii) then they'll be there for use
|
// rather than addresses; and (ii) then they'll be there for use
|
||||||
// by LEA and PEA.
|
// by LEA and PEA.
|
||||||
//
|
//
|
||||||
// TODO: this work should be performed by a full Decoder, so that it can be cached.
|
// TODO: much of this work should be performed by a full Decoder,
|
||||||
|
// so that it can be cached.
|
||||||
effective_address_[0] = calculate_effective_address(instruction, opcode, 0);
|
effective_address_[0] = calculate_effective_address(instruction, opcode, 0);
|
||||||
effective_address_[1] = calculate_effective_address(instruction, opcode, 1);
|
effective_address_[1] = calculate_effective_address(instruction, opcode, 1);
|
||||||
operand_[0] = effective_address_[0].value;
|
operand_[0] = effective_address_[0].value;
|
||||||
|
Reference in New Issue
Block a user