Prev: 26312 Up: Map Next: 26368
26320: Pause Transition
Used by the routine at Update_Frame.
Clears Pause_Flag and Pause_Toggle, calls Dispatch_Briefing with the argument, waits 100 frames, then writes Pause_Toggle back.
Input
A Briefing index
Pause_Transition 26320 EX AF,AF' Stash the argument in AF'.
26321 LD A,(57713) Fetch *Pause_Toggle.
26324 PUSH AF Stash *Pause_Toggle on the stack.
26325 EX AF,AF' Restore the argument from AF'.
26326 PUSH AF Stash the argument on the stack.
26327 XOR A Write 0 to *Pause_Flag and *Pause_Toggle.
26328 LD (61309),A
26331 LD (57713),A
26334 CALL Rotate_Coordinates_6 Call Rotate_Coordinates_6.
26337 POP AF Restore the argument from the stack.
26338 CALL Dispatch_Briefing Call Dispatch_Briefing.
26341 LD B,100 Set the frame counter to 100 in B.
Pause_Transition_Wait 26343 HALT Halt, and loop back to Pause_Transition_Wait until the frame counter is zero.
26344 DJNZ Pause_Transition_Wait
26346 CALL Process_Draw_List_41 Call Process_Draw_List_41.
26349 LD A,1 Write 1 to *Pause_Flag.
26351 LD (61309),A
26354 POP DE Restore the original *Pause_Toggle from the stack.
26355 LD A,(57713) Fetch *Pause_Toggle.
26358 AND A Test *Pause_Toggle.
26359 LD A,D Copy the original value to A.
26360 JR Z,Pause_Transition_Store Jump to Pause_Transition_Store if *Pause_Toggle is zero.
26362 XOR %00000001 Toggle bit 0.
Pause_Transition_Store 26364 LD (57713),A Write the result to *Pause_Toggle.
26367 RET Return.
Prev: 26312 Up: Map Next: 26368