Routines
| Prev: DF02 | Up: Map | Next: DF7E |
DF40: Action record: default for verb 19 (EXAMINE)
|
||||||||||||
| DF40 | DEFB $78,$10,$2E,$DF,$80,$40,$00,$00 | Action record header: flags $78; bit 5: test D078 first; bit 6: pre-check at DF2E; bit 4: five extra bytes; byte 1 $10 | ||||||||||
| DF48 | DEFB $00 | |||||||||||
| DF49 | LD A,$01 | Load A with $01 - CAAE = 1 | ||||||||||
| DF4B | LD ($CAAE),A | Store A in "Flag: the player's view has changed" (CAAE) | ||||||||||
| DF4E | CALL $DC6C | Call DC6C (inside "Action record: default for verb 28 (GO...") - Only for the actors DC6C accepts (Z): anyone else passes Print the description (DF5B) Newline | ||||||||||
| DF51 | RET NZ | If the zero flag is clear, return | ||||||||||
| DF52 | CALL $DF5B | Call DF5B (inside "Action record: default for verb 19 (EXAMINE)") | ||||||||||
| DF55 | CALL $A2A2 | Call the routine "Print a newline (A kept)" (A2A2) | ||||||||||
| DF58 | OR $01 | Make A non-zero, which clears the zero flag, and hand that back to the caller - Succeed | ||||||||||
| DF5A | RET | Return to the caller | ||||||||||
|
This entry point is used by the routines at E104 and E135.
|
||||||||||||
| DF5B | LD A,($A034) | Read $A034 in "Game variables" into A - IX = the direct object's record | ||||||||||
| DF5E | CALL $D237 | Call the routine "Resolve an id (in A) to its full entity record" (D237) | ||||||||||
| DF61 | SET 6,(IX+$06) | Mark it as seen (+6 bit 6) | ||||||||||
| DF65 | LD L,(IX+$0D) | Read byte +13 of the record at IX into L - Its description message (+13/+14): print it if there is one | ||||||||||
| DF68 | LD H,(IX+$0E) | Read byte +14 of the record at IX into H | ||||||||||
| DF6B | LD A,H | Copy H into A | ||||||||||
| DF6C | OR L | Set in A the bits that are set in L | ||||||||||
| DF6D | JP NZ,$A59F | If the result is not zero, go back to the routine "Print the message at HL" (A59F) | ||||||||||
| DF70 | LD HL,$68E1 | Point HL at the message "YOU SEE" (68E1) - None: 'You see' (68E1)... | ||||||||||
| DF73 | CALL $A59F | Call the routine "Print the message at HL" (A59F) | ||||||||||
| DF76 | CALL $D3D5 | ...its name (D3D5)... | ||||||||||
| DF79 | LD A,$2E | Load A with $2E - ...and a full stop | ||||||||||
| DF7B | JP $A9B7 | Go back to the routine "Print character A, a word at a time (word wrap)" (A9B7) | ||||||||||
| Prev: DF02 | Up: Map | Next: DF7E |