$80:8353

From ZAMN Hacking
Revision as of 20:25, 10 July 2024 by Piranhaplant (talk | contribs)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
ROM address data
Length 0x45
Type Code
Name waitFrames
Description Pauses the current entity for the given number of frames
Arguments/Return value A = [uint16] Number of frames
Return type RTL

Note: This subroutine also contains the code for the entity processing loop. The main game entry point ($80:80AE) and the entity return point ($80:833E) both jump to locations in the middle of this.

Note: An entity may resume early if its collision handler forces it to.

Note: Number of frames may not exceed 0x7FFF