![]() |
Routines |
| Prev: 48730 | Up: Map | Next: 48785 |
|
Used by the routines at ReadActionFlags, ProcessGameStatusEntriesAlternate and InspectActionTakenFlag.
Counts the entry down when its repeat mark is set, after measuring the field.
|
||||
| ProcessEntryWithCounter | 48754 | PUSH AF | Save the flags and start the count at zero. | |
| 48755 | LD B,0 | |||
| ProcessEntryWithCounter_Loop | 48757 | LD C,(IX+3) | Call AdvancePointerAndCheckBit to advance pointer and check bit. | |
| 48760 | CALL AdvancePointerAndCheckBit | |||
| 48763 | BIT 3,C | Jump ahead to ProcessEntryWithCounter_0 if bit 3 is clear. | ||
| 48765 | JR Z,ProcessEntryWithCounter_0 | |||
| 48767 | LD A,B | Jump ahead to ProcessEntryWithCounter_0 if the count is zero. | ||
| 48768 | AND A | |||
| 48769 | JR Z,ProcessEntryWithCounter_0 | |||
| 48771 | DEC B | Count down one. | ||
| ProcessEntryWithCounter_0 | 48772 | BIT 2,C | Jump ahead to ProcessEntryWithCounter_Next if bit 2 of C is clear. | |
| 48774 | JR Z,ProcessEntryWithCounter_Next | |||
| 48776 | INC B | Count one more and test the next bit from ProcessEntryWithCounter_Loop. | ||
| 48777 | JR ProcessEntryWithCounter_Loop | |||
|
Read the count.
|
||||
| ProcessEntryWithCounter_Next | 48779 | LD A,B | Go back to ProcessEntryWithCounter_Loop if the count is not zero. | |
| 48780 | AND A | |||
| 48781 | JR NZ,ProcessEntryWithCounter_Loop | |||
| 48783 | POP AF | Restore the saved flags from the stack. | ||
| 48784 | RET | Return. | ||
| Prev: 48730 | Up: Map | Next: 48785 |