mirror of
https://github.com/avinal/The-Hack-Assembler.git
synced 2026-01-10 07:08:32 +05:30
20 lines
292 B
C++
20 lines
292 B
C++
#pragma once
|
|
#ifdef CODE_HPP
|
|
#define CODE_HPP
|
|
|
|
#include <array>
|
|
|
|
class code
|
|
{
|
|
private:
|
|
const std::string mnemonic;
|
|
|
|
public:
|
|
code(std::string mno) : mnemonic(mno) {}
|
|
~code();
|
|
std::array<char, 3> dest();
|
|
std::array<char, 7> comp();
|
|
std::array<char, 3> jump();
|
|
};
|
|
|
|
#endif |