mirror of
https://github.com/azahar-emu/sirit.git
synced 2026-05-11 22:42:24 +02:00
Add Op* prefix to instructions that have to be emited
This commit is contained in:
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
|
||||
Reference in New Issue
Block a user