-
Notifications
You must be signed in to change notification settings - Fork 1
loop.asm
Tree: root /src/loop/flipper_miss.asm
This file is the root file of the loop directory. It contains the MainLoop. The loop starts by doing a busy wait on the wait_for_v_blank variable. This variable is asserted in the V-blank interrupt, and is immediately de-asserted after the busy wait. This makes sure that the loop runs only once between every V-blank.
The loop procedure files are then directly inserted into the loop body. They will call sub routines from other files which are included in the bottom of this file. By inserting files inside the loop body, the flow of control will enter the instructions without needing to branch. The bottom of the loop branches unconditionally back to the top of the loop, where it will stall while waiting for the next V-blank.