Routines
| Prev: E1A3 | Up: Map | Next: E1D6 |
E1B2: Action record: asked about the bloodstained clothes, Tricia Fender becomes Mrs Jones (RUN at $E1A5)
|
Addresses named in the title: E1A5.
|
||||||||||||
| E1B2 | DEFB $00,$07 | Action record header: flags $00; byte 1 $07 | ||||||||||
| E1B4 | LD A,($A035) | Read $A035 in "Game variables" into A - Is the indirect object ($A035) the bloodstained clothes ($43)? | ||||||||||
| E1B7 | CP $43 | Compare A with $43 | ||||||||||
| E1B9 | JR NZ,$E1D3 | If A differs from $43, skip ahead to E1D3 | ||||||||||
| E1BB | CALL $C821 | Call the routine "Can the current actor ($A036) see thing A?" (C821) - Can the actor see them (C821)? | ||||||||||
| E1BE | JR NZ,$E1C6 | If the zero flag is clear, skip ahead to E1C6 | ||||||||||
| E1C0 | CALL $E1FC | Call E1FC (inside "Action record: default for TELL and TELL...") - No: print the refusal (E1FC) and fail (DC15) | ||||||||||
| E1C3 | JP $DC15 | Go back to the routine "Fail: A = 0, HL = 0, Z set" (DC15) | ||||||||||
| E1C6 | LD A,$5F | Load A with $5F - Yes: the actor's identity becomes thing $5F, Mrs Jones (E03A)... | ||||||||||
| E1C8 | CALL $E03A | Call the routine "Set the worn state of the actor (A = 1 wear, 0 take..." (E03A) | ||||||||||
| E1CB | LD IX,$998F | |||||||||||
| E1CF | SET 1,(IX+$03) | Set bit 1 of byte +3 of the record at IX | ||||||||||
|
This entry point is used by the routine at E188.
|
||||||||||||
| E1D3 | OR $01 | Make A non-zero, which clears the zero flag, and hand that back to the caller - Succeed (also when it was not the clothes) | ||||||||||
| E1D5 | RET | Return to the caller | ||||||||||
| Prev: E1A3 | Up: Map | Next: E1D6 |