2018-08-26 00:16:37 +01:00
|
|
|
/* This file is part of the sirit project.
|
|
|
|
* Copyright (c) 2018 ReinUsesLisp
|
|
|
|
* This software may be used and distributed according to the terms of the GNU
|
2018-08-27 03:28:39 +01:00
|
|
|
* Lesser General Public License version 2.1 or any later version.
|
2018-08-26 00:16:37 +01:00
|
|
|
*/
|
|
|
|
|
|
|
|
#include "operand.h"
|
2018-10-03 04:32:45 +01:00
|
|
|
#include <cassert>
|
2018-08-26 00:16:37 +01:00
|
|
|
|
|
|
|
namespace Sirit {
|
|
|
|
|
|
|
|
Operand::Operand() {}
|
|
|
|
|
|
|
|
Operand::~Operand() = default;
|
|
|
|
|
|
|
|
void Operand::Fetch(Stream& stream) const {
|
|
|
|
assert(!"Fetching unimplemented operand");
|
|
|
|
}
|
|
|
|
|
|
|
|
u16 Operand::GetWordCount() const {
|
|
|
|
assert(!"Fetching unimplemented operand");
|
|
|
|
return 0;
|
|
|
|
}
|
|
|
|
|
2018-10-03 04:32:45 +01:00
|
|
|
bool Operand::operator==(const Operand& other) const { return false; }
|
2018-08-26 00:16:37 +01:00
|
|
|
|
|
|
|
bool Operand::operator!=(const Operand& other) const {
|
|
|
|
return !(*this == other);
|
|
|
|
}
|
|
|
|
|
2018-10-03 04:32:45 +01:00
|
|
|
OperandType Operand::GetType() const { return operand_type; }
|
2018-08-26 00:16:37 +01:00
|
|
|
|
|
|
|
} // namespace Sirit
|