Routines |
Prev: 70CE | Up: Map | Next: 7101 |
Used by the routines at ActorEraseMovedSprite and 7149.
|
||||
FindActorSpriteAndUpdate | 70D2 | CALL ActorGetSprite | Call ActorGetSprite. | |
ActorUpdate | 70D5 | LD L,(IX+$01) | Fetch actor co-ordinates. | |
70D8 | LD H,(IX+$02) | |||
This entry point is used by the routines at DisplayCupsCollected and DisplayPlayerLives.
|
||||
FindActorSpriteAndUpdate_0 | 70DB | LD A,L | ||
70DC | NEG | |||
70DE | AND %00000111 | Keep only bits 0-2. | ||
70E0 | LD ($5E41),A | Write this to 5E41. | ||
70E3 | LD A,$02 | A=02. | ||
70E5 | JR Z,FindActorSpriteAndUpdate_1 | |||
70E7 | INC A | Increment A by one. | ||
FindActorSpriteAndUpdate_1 | 70E8 | LD ($5E24),A | Write A to WidthBytes. | |
70EB | LD ($5E27),HL | Write HL to ActorScreenPosition. | ||
70EE | CALL $70AD | Call 70AD. | ||
70F1 | CALL ScreenAddress | Call ScreenAddress. | ||
70F4 | LD A,(DE) | |||
70F5 | CP C | |||
70F6 | JR C,FindActorSpriteAndUpdate_2 | |||
70F8 | LD A,C | |||
FindActorSpriteAndUpdate_2 | 70F9 | LD ($5E26),A | Set HeightLines. | |
70FC | LD ($5E23),A | Set HeightPixels. | ||
70FF | JR NextSprite | Jump to NextSprite. |
Prev: 70CE | Up: Map | Next: 7101 |