abstract struct GBA::Waitloop::Instruction

Direct Known Subclasses

Defined in:

crab/gba/waitloop.cr

Constructors

Class Method Summary

Instance Method Summary

Constructor Detail

def self.new #

[View source]

Class Method Detail

def self.parse?(instruction : UInt16) : Instruction | Nil #

Attempt to parse the instruction. Nilable to support unimplemented insts.


[View source]

Instance Method Detail

def initialize #

[View source]
def read_bits : UInt16 #

Each set bit indicates a register this instruction reads from.


[View source]
def read_only? #

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


[View source]
def write_bits : UInt16 #

Each set bit indicates a register this instruction writes to.


[View source]