Class: Crabstone::RISCV::Operand
- Inherits:
-
FFI::Struct
- Object
- FFI::Struct
- Crabstone::RISCV::Operand
- Includes:
- Extension::Operand
- Defined in:
- lib/crabstone/arch/5/riscv.rb
Instance Method Summary collapse
Methods included from Extension::Operand
Instance Method Details
#imm? ⇒ Boolean
39 40 41 |
# File 'lib/crabstone/arch/5/riscv.rb', line 39 def imm? self[:type] == OP_IMM end |
#mem? ⇒ Boolean
43 44 45 |
# File 'lib/crabstone/arch/5/riscv.rb', line 43 def mem? self[:type] == OP_MEM end |
#reg? ⇒ Boolean
35 36 37 |
# File 'lib/crabstone/arch/5/riscv.rb', line 35 def reg? self[:type] == OP_REG end |