abstract struct GBA::Waitloop::Instruction
- GBA::Waitloop::Instruction
- Struct
- Value
- Object
Direct Known Subclasses
- GBA::Waitloop::AddOffsetToStackPointer
- GBA::Waitloop::AddSubtract
- GBA::Waitloop::AluOperations
- GBA::Waitloop::ConditionalBranch
- GBA::Waitloop::HighRegBranchExchange
- GBA::Waitloop::LoadAddress
- GBA::Waitloop::LoadStoreHalfword
- GBA::Waitloop::LoadStoreImmediateOffset
- GBA::Waitloop::LoadStoreRegisterOffset
- GBA::Waitloop::LoadStoreSignExtended
- GBA::Waitloop::LongBranchLink
- GBA::Waitloop::MoveCompareAddSubtract
- GBA::Waitloop::MoveShiftedRegister
- GBA::Waitloop::MultipleLoadStore
- GBA::Waitloop::PcRelativeLoad
- GBA::Waitloop::PushPopRegisters
- GBA::Waitloop::SoftwareInterrupt
- GBA::Waitloop::SpRelativeLoadStore
- GBA::Waitloop::UnconditionalBranch
- GBA::Waitloop::Unimplemented
Defined in:
crab/gba/waitloop.crConstructors
Class Method Summary
-
.parse?(instruction : UInt16) : Instruction | Nil
Attempt to parse the instruction.
Instance Method Summary
- #initialize
-
#read_bits : UInt16
Each set bit indicates a register this instruction reads from.
-
#read_only?
Indicates that this instruction doesn't attempt to write to storage.
-
#write_bits : UInt16
Each set bit indicates a register this instruction writes to.
Constructor Detail
Class Method Detail
def self.parse?(instruction : UInt16) : Instruction | Nil
#
Attempt to parse the instruction. Nilable to support unimplemented insts.