mirror of
https://git.suyu.dev/suyu/sirit.git
synced 2024-12-23 04:32:04 +00:00
33 lines
782 B
C++
33 lines
782 B
C++
/* 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
|
|
* Lesser General Public License version 2.1 or any later version.
|
|
*/
|
|
|
|
#include "operand.h"
|
|
#include <cassert>
|
|
|
|
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;
|
|
}
|
|
|
|
bool Operand::operator==(const Operand& other) const { return false; }
|
|
|
|
bool Operand::operator!=(const Operand& other) const {
|
|
return !(*this == other);
|
|
}
|
|
|
|
OperandType Operand::GetType() const { return operand_type; }
|
|
|
|
} // namespace Sirit
|