Newer
Older
emul / emul_inst_isa.h
#ifndef EMUL_INST_ISA__
#define EMUL_INST_ISA__

typedef enum {
    // 翻訳のための擬似オペコード
    OPECODE_DECODE_ERROR,

    // オペコード
    ADD,
    ADDI,
    AND,
    ANDI,
    CLO,
    CLZ,
    DIV,
    MULT,
    MUL,
    MULO,
    MADD,
    MSUB,
    NEG,
    NOR,
    NOT,
    OR,
    ORI,
    REM,
    SLL,
    SLLV,
    SRA,
    SRAV,
    SRL,
    SRLV,
    ROL,
    ROR,
    SUB,
    XOR,
    XORI,

    LUI,
    LI,

    SLT,
    SLTI,
    SEQ,
    SGE,
    SGT,
    SLE,
    SNE,

    B,
    BEQ,
    BGEZ,
    BGEZAL,
    BGTZ,
    BLEZ,
    BLTZAL,
    BLTZ,
    BNE,
    BEQZ,
    BGE,
    BGT,
    BLE,
    BLT,
    BNEZ,

    J,
    JAL,
    JALR,
    JR,

    LA,
    LB,
    LH,
    LW,
    LWL,
    LWR,
    LD,
    ULH,
    ULW,
    LL,

    SB,
    SH,
    SW,
    SWL,
    SWR,
    SD,
    USH,
    USW,
    SC,

    MOVE,
    MFHI,
    MFLO,
    MTHI,
    MTLO,
    MOVN,
    MOVZ,

    SYSCALL,
    BREAK,
    NOP
} EMUL_ISA;

#endif