You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

46 lines
902 B

#ifndef ETHSERP_OPCODES
#define ETHSERP_OPCODES
#include <stdio.h>
#include <iostream>
#include <vector>
#include <map>
10 years ago
#include "util.h"
10 years ago
class Mapping {
public:
Mapping(std::string Op, int Opcode, int In, int Out) {
op = Op;
opcode = Opcode;
in = In;
out = Out;
}
std::string op;
int opcode;
int in;
int out;
10 years ago
};
10 years ago
extern Mapping mapping[];
10 years ago
10 years ago
extern std::map<std::string, std::vector<int> > opcodes;
extern std::map<int, std::string> reverseOpcodes;
10 years ago
std::pair<std::string, std::vector<int> > _opdata(std::string ops, int opi);
int opcode(std::string op);
int opinputs(std::string op);
int opoutputs(std::string op);
10 years ago
std::string op(int opcode);
10 years ago
10 years ago
extern std::string lllSpecials[][3];
10 years ago
10 years ago
extern std::map<std::string, std::pair<int, int> > lllMap;
10 years ago
bool isValidLLLFunc(std::string f, int argc);
#endif