Versions in this module Expand all Collapse all v0 v0.1.4 Jan 4, 2022 v0.1.3 Dec 21, 2021 v0.1.1 Dec 6, 2021 v0.1.0 Dec 6, 2021 Changes in this version + var ArgRegs = []Reg + var SavedRegs = []Reg + var TempRegs = []Reg + func OpcodeStrings() []string + func RegStrings() []string + type Fmt int + const BadFmt + const BinaryFmt + const CallFmt + const CompareFmt + const LoadFmt + const MoveFmt + const NoFmt + const StoreFmt + const UnaryFmt + func (f Fmt) Template() string + func (f Fmt) Vars(val *ir.Value) []*asm.Var + type Opcode int + const Add + const Addc + const And + const Asr + const Call + const Error + const Halt + const IfEq + const IfGe + const IfGt + const IfLe + const IfLt + const IfNe + const IfUge + const IfUgt + const IfUle + const IfUlt + const Imm + const Imm2 + const Jump + const Load + const Loadb + const Loadc + const Move + const Neg + const Nop + const Not + const NumOps + const Or + const Rcsr + const Rets + const Return + const Shl + const Shr + const Store + const Storeb + const Sub + const Subc + const Swap + const Wcsr + const Xor + func OpcodeString(s string) (Opcode, error) + func OpcodeValues() []Opcode + func (i Opcode) IsAOpcode() bool + func (i Opcode) String() string + func (op Opcode) Asm() string + func (op Opcode) Fmt() asm.Fmt + func (op Opcode) IsCall() bool + func (op Opcode) IsMove() bool + type Reg uint + const A0 + const A1 + const A2 + const GP + const RA + const S0 + const S1 + const S2 + const S3 + const SP + const T0 + const T1 + const T2 + const T3 + const T4 + const T5 + func RegString(s string) (Reg, error) + func RegValues() []Reg + func (i Reg) IsAReg() bool + func (i Reg) String() string