mirror of
https://github.com/TomHarte/CLK.git
synced 2024-11-26 23:52:26 +00:00
Removes some detritus.
This commit is contained in:
parent
95d360251d
commit
fa19e2d9c2
@ -109,15 +109,15 @@ struct PartialMachineCycle {
|
|||||||
return operation >= Operation::ReadOpcodeWait && operation <= Operation::InterruptWait;
|
return operation >= Operation::ReadOpcodeWait && operation <= Operation::InterruptWait;
|
||||||
}
|
}
|
||||||
|
|
||||||
PartialMachineCycle(const PartialMachineCycle &rhs) :
|
PartialMachineCycle(const PartialMachineCycle &rhs) noexcept :
|
||||||
operation(rhs.operation),
|
operation(rhs.operation),
|
||||||
length(rhs.length),
|
length(rhs.length),
|
||||||
address(rhs.address),
|
address(rhs.address),
|
||||||
value(rhs.value),
|
value(rhs.value),
|
||||||
was_requested(rhs.was_requested) {}
|
was_requested(rhs.was_requested) {}
|
||||||
PartialMachineCycle(Operation operation, HalfCycles length, uint16_t *address, uint8_t *value, bool was_requested) :
|
PartialMachineCycle(Operation operation, HalfCycles length, uint16_t *address, uint8_t *value, bool was_requested) noexcept :
|
||||||
operation(operation), length(length), address(address), value(value), was_requested(was_requested) {}
|
operation(operation), length(length), address(address), value(value), was_requested(was_requested) {}
|
||||||
PartialMachineCycle() :
|
PartialMachineCycle() noexcept :
|
||||||
operation(Internal), length(0), address(nullptr), value(nullptr), was_requested(false) {}
|
operation(Internal), length(0), address(nullptr), value(nullptr), was_requested(false) {}
|
||||||
};
|
};
|
||||||
|
|
||||||
@ -793,11 +793,9 @@ template <class T, bool uses_bus_request> class Processor {
|
|||||||
void copy_program(const MicroOp *source, std::vector<MicroOp> &destination) {
|
void copy_program(const MicroOp *source, std::vector<MicroOp> &destination) {
|
||||||
size_t length = 0;
|
size_t length = 0;
|
||||||
while(!isTerminal(source[length].type)) length++;
|
while(!isTerminal(source[length].type)) length++;
|
||||||
// destination.resize(length + 1);
|
|
||||||
size_t pointer = 0;
|
size_t pointer = 0;
|
||||||
while(true) {
|
while(true) {
|
||||||
destination.emplace_back(source[pointer]);
|
destination.emplace_back(source[pointer]);
|
||||||
// destination[pointer] = source[pointer];
|
|
||||||
if(isTerminal(source[pointer].type)) break;
|
if(isTerminal(source[pointer].type)) break;
|
||||||
pointer++;
|
pointer++;
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user