mirror of
https://github.com/Decompollaborate/rabbitizer.git
synced 2025-01-08 12:37:54 +00:00
8237818ff9
* initial gte setup * starting to parse gte instructions * R3000_GTE -> R3000GTE * decode all the non-operand instructions * remove printfs, whoops * decode gte with operands * cleanups * bindings stuffs * RabbitizerInstrId_isValid * fix missing include
24 lines
754 B
Plaintext
24 lines
754 B
Plaintext
/* SPDX-FileCopyrightText: © 2022 Decompollaborate */
|
|
/* SPDX-License-Identifier: MIT */
|
|
|
|
#define RABBITIZER_DEF_INSTR_ID(prefix, caseBits, name, ...) \
|
|
RABBITIZER_INSTR_ID_##prefix##_##name,
|
|
|
|
#define RABBITIZER_DEF_INSTR_ID_ALTNAME(prefix, caseBits, name, altname, ...) \
|
|
RABBITIZER_DEF_INSTR_ID(prefix, caseBits, name, __VA_ARGS__)
|
|
|
|
typedef enum RabbitizerInstrId {
|
|
#include "instr_id/RabbitizerInstrId_cpu.inc"
|
|
|
|
#include "instr_id/RabbitizerInstrId_rsp.inc"
|
|
|
|
#include "instr_id/RabbitizerInstrId_r3000gte.inc"
|
|
|
|
#include "instr_id/RabbitizerInstrId_r5900.inc"
|
|
|
|
RABBITIZER_INSTR_ID_ALL_MAX = RABBITIZER_DEF_INSTR_ID(r5900, , MAX, )
|
|
} RabbitizerInstrId;
|
|
|
|
#undef RABBITIZER_DEF_INSTR_ID
|
|
#undef RABBITIZER_DEF_INSTR_ID_ALTNAME
|