Routines
| Prev: E003 | Up: Map | Next: E03A |
E022: Shared WEAR action ($AA71 entry #4)
|
Addresses named in the title: AA71.
Used by the China man's disguise (object 14), whose own list maps WEAR to 4 and TAKE OFF to 5. The body calls E03A with A = 1.
|
||||||||
| E022 | DEFB $48,$10,$1C,$E0 | Action record header: flags $48; bit 6: pre-check at E01C; byte 1 $10 | ||||||
| E026 | LD A,$01 | Load A with $01 - WEAR: A = 1, the actor becomes thing 1 (E03A) | ||||||
|
This entry point is used by the routine at DFF0.
|
||||||||
| E028 | CALL $E03A | Call the routine "Set the worn state of the actor (A = 1 wear, 0 take..." (E03A) | ||||||
| E02B | LD IX,($A013) | Read $A013 in "Game variables" into IX - The disguise is taken out of the world: no holder, no room | ||||||
| E02F | LD (IX+$01),$00 | Set byte +1 of the record at IX to $00 | ||||||
| E033 | LD (IX+$0F),$00 | Set byte +15 of the record at IX to $00 | ||||||
| E037 | OR $01 | Make A non-zero, which clears the zero flag, and hand that back to the caller | ||||||
| E039 | RET | Return to the caller | ||||||
| Prev: E003 | Up: Map | Next: E03A |