1
0
mirror of https://github.com/TomHarte/CLK.git synced 2024-06-09 17:29:36 +00:00

Fill in assignment operator.

This commit is contained in:
Thomas Harte 2023-12-21 23:09:42 -05:00
parent 85f814c632
commit 7c28a77b2b

View File

@ -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;