mirror of
https://git.suyu.dev/suyu/sirit.git
synced 2026-01-02 04:35:38 +01:00
Add Op* prefix to instructions that have to be emited
This commit is contained in:
parent
ba3a3a74d7
commit
a08aeec982
15 changed files with 149 additions and 144 deletions
29
src/literal_string.h
Normal file
29
src/literal_string.h
Normal file
|
|
@ -0,0 +1,29 @@
|
|||
/* 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.
|
||||
*/
|
||||
|
||||
#pragma once
|
||||
|
||||
#include "operand.h"
|
||||
#include "stream.h"
|
||||
#include <string>
|
||||
|
||||
namespace Sirit {
|
||||
|
||||
class LiteralString : public Operand {
|
||||
public:
|
||||
LiteralString(const std::string& string);
|
||||
~LiteralString();
|
||||
|
||||
virtual void Fetch(Stream& stream) const;
|
||||
virtual u16 GetWordCount() const;
|
||||
|
||||
virtual bool operator==(const Operand& other) const;
|
||||
|
||||
private:
|
||||
const std::string string;
|
||||
};
|
||||
|
||||
} // namespace Sirit
|
||||
Loading…
Add table
Add a link
Reference in a new issue