mirror of
https://github.com/TomHarte/CLK.git
synced 2025-01-26 15:32:04 +00:00
Fill in assignment operator.
This commit is contained in:
parent
85f814c632
commit
7c28a77b2b
@ -162,14 +162,17 @@ struct Microcycle: public MicrocycleOperationStorage<op> {
|
||||
template <typename MicrocycleRHS>
|
||||
Microcycle &operator =(const MicrocycleRHS &rhs) {
|
||||
static_assert(op == Operation::DecodeDynamically);
|
||||
/* TODO */
|
||||
this->operation = rhs.operation;
|
||||
this->value = rhs.value;
|
||||
this->address = rhs.address;
|
||||
this->length = rhs.length;
|
||||
|
||||
return *this;
|
||||
}
|
||||
|
||||
/// @returns @c true if two Microcycles are equal; @c false otherwise.
|
||||
bool operator ==(const Microcycle &rhs) const {
|
||||
template <typename MicrocycleRHS>
|
||||
bool operator ==(const MicrocycleRHS &rhs) const {
|
||||
if(value != rhs.value) return false;
|
||||
if(address != rhs.address) return false;
|
||||
if(length != rhs.length) return false;
|
||||
|
Loading…
x
Reference in New Issue
Block a user