package venus.assembler

import venus.assembler.pseudos.* // ktlint-disable no-wildcard-imports

/** Describes each instruction for writing */
enum class PseudoDispatcher(val pw: PseudoWriter) {
    j(J),
    jal(JAL),
    jalr(JALR),
    jr(JR),
    la(LA),
    lb(Load),
    lbu(Load),
    lh(Load),
    lhu(Load),
    li(LI),
    lw(Load),
    mv(MV),
    nop(NOP),
    ret(RET),
    sb(Store),
    sh(Store),
    sw(Store)
    ;
}

package venus.assembler

import venus.assembler.pseudos.* // ktlint-disable no-wildcard-imports

/** Describes each instruction for writing */
enum class PseudoDispatcher(val pw: PseudoWriter) {
    beqz(BEQZ),
    bgez(BGEZ),
    bgt(BGT),
    bgtu(BGTU),
    bgtz(BGTZ),
    ble(BLE),
    bleu(BLEU),
    blez(BLEZ),
    bltz(BLTZ),
    bnez(BNEZ),
    call(CALL),
    jal(JAL),
    jalr(JALR),
    j(J),
    jr(JR),
    la(LA),
    lb(Load),
    lbu(Load),
    lh(Load),
    lhu(Load),
    li(LI),
    lw(Load),
    mv(MV),
    neg(NEG),
    nop(NOP),
    not(NOT),
    ret(RET),
    sb(Store),
    seqz(SEQZ),
    sgtz(SGTZ),
    sh(Store),
    sltz(SLTZ),
    snez(SNEZ),
    sw(Store),
    tail(TAIL)
    ;
}

Add all pseudoinstructions to dispatcher
Add all pseudoinstructions to dispatcher

kvakil/venus,kvakil/venus,kvakil/venus