module GBA::Waitloop

Direct including types

Defined in:

crab/gba/waitloop.cr

Instance Method Summary

Instance Method Detail

def analyze_loop(start_addr : UInt32, end_addr : UInt32) : Nil #

Attempt to detect a waitloop. Assumes thumb instructions.


[View source]
def attempt_waitloop_detection : Bool #

Whether waitloop detection should be attempted.


[View source]
def attempt_waitloop_detection=(attempt_waitloop_detection : Bool) #

Whether waitloop detection should be attempted.


[View source]
def build_lut : Slice(Instruction.class) #

[View source]
def cache_waitloop_results : Bool #

Whether to try caching successful and unsuccessful branch destinations.


[View source]
def cache_waitloop_results=(cache_waitloop_results : Bool) #

Whether to try caching successful and unsuccessful branch destinations.


[View source]
def waitloop_instr_lut : Slice(Instruction.class) #

Table to quickly look up an instruction's class.


[View source]