mirror of
https://github.com/Decompollaborate/rabbitizer.git
synced 2024-12-29 09:22:02 +00:00
136fb7a09a
* starting r5900 stuff * operands of pmaddh * expose R5900 to python * fix merge issues * move to subtables * mmi0 and mmi3 * the rest of mmi instructions * normal, special, regimm and cop0 * fpu_s * cop2 special1 * starting cop2 special2 * the rest of special2 * operands for normal, special, mmi and mmi0 * mmi1 and mmi2 * Fix mmi * sync.p * mmi3 and cop1 * add r5900 opcodes to InstrId.pyi * add invalid bits to unknown instruction comment * progress on cop2 special1 * kinda finish cop2 special1 * cop2 special2 progress * Special case for R5900 cvt.w.s -> trunc.w.s * R5900 c.olt.s and c.ole.s * Fix a bunch of VU0 instructions * I'm getting tired of this bullshit * vlqi, vsqi, vlqd, vsqd * fix some operands * fix div1 * lqc2 and sqc2 * sqrt.s and mult * fix mtsa and bc2 * Remove redundant .instrType=RABBITIZER_INSTR_TYPE_UNKNOWN * RabbitizerInstrSuffix * Impleme instr suffix type * add instr suffix to remaining instructions * ifdef out xyzw suffix from registers * format * fix warnings * uncomment stuff on InstrId.pyi * readme
38 lines
1001 B
C
38 lines
1001 B
C
/* SPDX-FileCopyrightText: © 2022 Decompollaborate */
|
|
/* SPDX-License-Identifier: MIT */
|
|
|
|
#ifndef RABBITIZER_INSTRID_H
|
|
#define RABBITIZER_INSTRID_H
|
|
#pragma once
|
|
|
|
#include "common/Utils.h"
|
|
|
|
|
|
#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 "instructions/instr_id/RabbitizerInstrId_cpu.inc"
|
|
|
|
#include "instructions/instr_id/RabbitizerInstrId_rsp.inc"
|
|
|
|
#include "instructions/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
|
|
|
|
|
|
extern const char *RabbitizerInstrId_Names[];
|
|
|
|
|
|
CONST NODISCARD RETURNS_NON_NULL
|
|
const char *RabbitizerInstrId_getOpcodeName(RabbitizerInstrId uniqueId);
|
|
|
|
#endif
|