struct GBA::Waitloop::AddSubtract

Defined in:

crab/gba/waitloop.cr

Constructors

Instance Method Summary

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) #

[View source]
def self.parse?(instr : UInt16) : AddSubtract #

[View source]

Instance Method Detail

def read_bits : UInt16 #
Description copied from struct GBA::Waitloop::Instruction

Each set bit indicates a register this instruction reads from.


[View source]
def read_only? : Bool #
Description copied from struct GBA::Waitloop::Instruction

Indicates that this instruction doesn't attempt to write to storage.


[View source]
def write_bits : UInt16 #
Description copied from struct GBA::Waitloop::Instruction

Each set bit indicates a register this instruction writes to.


[View source]