module GBA::Waitloop
Direct including types
Defined in:
crab/gba/waitloop.crInstance Method Summary
-
#analyze_loop(start_addr : UInt32, end_addr : UInt32) : Nil
Attempt to detect a waitloop.
-
#attempt_waitloop_detection : Bool
Whether waitloop detection should be attempted.
-
#attempt_waitloop_detection=(attempt_waitloop_detection : Bool)
Whether waitloop detection should be attempted.
- #build_lut : Slice(Instruction.class)
-
#cache_waitloop_results : Bool
Whether to try caching successful and unsuccessful branch destinations.
-
#cache_waitloop_results=(cache_waitloop_results : Bool)
Whether to try caching successful and unsuccessful branch destinations.
-
#waitloop_instr_lut : Slice(Instruction.class)
Table to quickly look up an instruction's class.
Instance Method Detail
def analyze_loop(start_addr : UInt32, end_addr : UInt32) : Nil
#
Attempt to detect a waitloop. Assumes thumb instructions.
def attempt_waitloop_detection=(attempt_waitloop_detection : Bool)
#
Whether waitloop detection should be attempted.
def cache_waitloop_results : Bool
#
Whether to try caching successful and unsuccessful branch destinations.
def cache_waitloop_results=(cache_waitloop_results : Bool)
#
Whether to try caching successful and unsuccessful branch destinations.
Table to quickly look up an instruction's class.