struct GBA::Waitloop::AddSubtract
- GBA::Waitloop::AddSubtract
- GBA::Waitloop::Instruction
- Struct
- Value
- Object
Defined in:
crab/gba/waitloop.crConstructors
- .new(imm_flag : Bool, sub : Bool, imm_or_rn : UInt16, rs : UInt16, rd : UInt16)
- .parse?(instr : UInt16) : AddSubtract
Instance Method Summary
-
#read_bits : UInt16
Each set bit indicates a register this instruction reads from.
-
#read_only? : Bool
Indicates that this instruction doesn't attempt to write to storage.
-
#write_bits : UInt16
Each set bit indicates a register this instruction writes to.
Instance methods inherited from struct GBA::Waitloop::Instruction
initialize
initialize,
read_bits : UInt16
read_bits,
read_only?
read_only?,
write_bits : UInt16
write_bits
Constructor methods inherited from struct GBA::Waitloop::Instruction
new
new
Class methods inherited from struct GBA::Waitloop::Instruction
parse?(instruction : UInt16) : Instruction | Nil
parse?
Constructor Detail
def self.new(imm_flag : Bool, sub : Bool, imm_or_rn : UInt16, rs : UInt16, rd : UInt16)
#
Instance Method Detail
def read_bits : UInt16
#
Description copied from struct GBA::Waitloop::Instruction
Each set bit indicates a register this instruction reads from.
def read_only? : Bool
#
Description copied from struct GBA::Waitloop::Instruction
Indicates that this instruction doesn't attempt to write to storage.
def write_bits : UInt16
#
Description copied from struct GBA::Waitloop::Instruction
Each set bit indicates a register this instruction writes to.