Prev: CDD5 Up: Map Next: CE0D
CDDC: Dispatch Phase
Used by the routines at Run_Other_Phase and Update_Frame.
Clears work pointers, then runs the phase-zero updates or jumps to Dispatch_Phase_One.
Dispatch_Phase CDDC XOR A Write 00 to *Draw_Flag_A, *Draw_Flag_B and *Target_Count.
CDDD LD ($EE1A),A
CDE0 LD ($EE1B),A
CDE3 LD ($EED8),A
CDE6 LD HL,$E600 Point *Buffer_Pointer_A at Draw_Buffer_A.
CDE9 LD ($EE1C),HL
CDEC LD HL,$E900 Point *Buffer_Pointer_B at E900.
CDEF LD ($EE1E),HL
CDF2 LD HL,$DE00 Point *Buffer_Pointer_C at Target_Slots.
CDF5 LD ($EED6),HL
CDF8 LD A,($EF54) Jump to Dispatch_Phase_One if *Phase is not zero.
CDFB AND A
CDFC JR NZ,Dispatch_Phase_One
*Phase is 00.
CDFE CALL Move_Slot_Table Call Move_Slot_Table.
CE01 CALL Update_Sprite_Slots Call Update_Sprite_Slots.
CE04 CALL Draw_Phase_Slots Call Draw_Phase_Slots.
CE07 CALL Scan_Object_Slots Call Scan_Object_Slots.
CE0A JP Finish_Frame Jump to Finish_Frame.
Prev: CDD5 Up: Map Next: CE0D