From b16e2f67e7d392890c6835f98ca9b2a7bb44fe2e Mon Sep 17 00:00:00 2001 From: Xavier Del Campo Romero Date: Sun, 2 Nov 2025 18:21:49 +0100 Subject: First commit --- instr.h | 24 ++++++++++++++++++++++++ 1 file changed, 24 insertions(+) create mode 100644 instr.h (limited to 'instr.h') diff --git a/instr.h b/instr.h new file mode 100644 index 0000000..942e474 --- /dev/null +++ b/instr.h @@ -0,0 +1,24 @@ +#ifndef INSTR_H +#define INSTR_H + +#include "types.h" +#include +#include + +struct WasmInstr +{ + quint32 address; + QString instr; + + static int parse(FILE *f, WasmInstr &instr, QString &error, + bool *end = nullptr); + static int parse(FILE *f, varuint32 maxlen, QVector &instr, + QString &error); + bool operator==(const WasmInstr &other) const + { + return address == other.address + && instr == other.instr; + } +}; + +#endif -- cgit v1.2.3