![]() |
Routines |
| Prev: 66C8 | Up: Map | Next: 6700 |
|
Used by the routine at Update_Frame.
Clears Pause_Flag and Pause_Toggle, calls Dispatch_Briefing with the argument, waits 64 frames, then writes Pause_Toggle back.
|
||||||||
| Pause_Transition | 66D0 | EX AF,AF' | Stash the argument in AF'. | |||||
| 66D1 | LD A,($E171) | Fetch *Pause_Toggle. | ||||||
| 66D4 | PUSH AF | Stash *Pause_Toggle on the stack. | ||||||
| 66D5 | EX AF,AF' | Restore the argument from AF'. | ||||||
| 66D6 | PUSH AF | Stash the argument on the stack. | ||||||
| 66D7 | XOR A | Write 00 to *Pause_Flag and *Pause_Toggle. | ||||||
| 66D8 | LD ($EF7D),A | |||||||
| 66DB | LD ($E171),A | |||||||
| 66DE | CALL Rotate_Coordinates_6 | Call Rotate_Coordinates_6. | ||||||
| 66E1 | POP AF | Restore the argument from the stack. | ||||||
| 66E2 | CALL Dispatch_Briefing | Call Dispatch_Briefing. | ||||||
| 66E5 | LD B,$64 | Set the frame counter to 64 in B. | ||||||
| Pause_Transition_Wait | 66E7 | HALT | Halt, and loop back to Pause_Transition_Wait until the frame counter is zero. | |||||
| 66E8 | DJNZ Pause_Transition_Wait | |||||||
| 66EA | CALL Process_Draw_List_41 | Call Process_Draw_List_41. | ||||||
| 66ED | LD A,$01 | Write 01 to *Pause_Flag. | ||||||
| 66EF | LD ($EF7D),A | |||||||
| 66F2 | POP DE | Restore the original *Pause_Toggle from the stack. | ||||||
| 66F3 | LD A,($E171) | Fetch *Pause_Toggle. | ||||||
| 66F6 | AND A | Test *Pause_Toggle. | ||||||
| 66F7 | LD A,D | Copy the original value to A. | ||||||
| 66F8 | JR Z,Pause_Transition_Store | Jump to Pause_Transition_Store if *Pause_Toggle is zero. | ||||||
| 66FA | XOR %00000001 | Toggle bit 0. | ||||||
| Pause_Transition_Store | 66FC | LD ($E171),A | Write the result to *Pause_Toggle. | |||||
| 66FF | RET | Return. | ||||||
| Prev: 66C8 | Up: Map | Next: 6700 |