![]() |
Routines |
| Prev: 26968 | Up: Map | Next: 26994 |
|
Used by the routine at ActionKill.
Flip the scenic-event bit selected by the caller.
|
||||||||
| HandlerToggleScenicFlag | 26974 | PUSH BC | Remember the caller's registers. | |||||
| 26975 | LD C,1 | Start with the bit for scenic event zero. | ||||||
| 26977 | LD B,A | |||||||
| 26978 | AND A | Event zero uses that bit as it stands. | ||||||
| 26979 | JR Z,HandlerToggleScenicFlag_Step1 | |||||||
| HandlerToggleScenicFlag_Loop1 | 26981 | RLC C | Line the bit up with this scenic event. | |||||
| 26983 | DJNZ HandlerToggleScenicFlag_Loop1 | Repeat until the bit matches that event. | ||||||
| HandlerToggleScenicFlag_Step1 | 26985 | LD A,(25122) | Fetch the scenic-event flags. | |||||
| 26988 | XOR C | Flip this scenic event's bit. | ||||||
| 26989 | LD (25122),A | Store the scenic-event flags. | ||||||
| 26992 | POP BC | Restore the registers the caller needs from the stack. | ||||||
| 26993 | RET | Return. | ||||||
| Prev: 26968 | Up: Map | Next: 26994 |