| alien | Routines |
| Prev: 31857 | Up: Map | Next: 31964 |
|
Fills the action menu's " use:" rows (strip cells 8-11) for the current actor: row 8 = name of the front-hand item, row 9 = name of the back-hand item, row 10 = "Get Item" (47) when the room has items lying about and the back hand is free, row 11 = "Leave Item" (48) when the front hand is loaded.
|
||||
| 31915 | LD C,255 | C = "empty" sentinel | ||
| 31917 | LD HL,29638 | menu strip cell 8 | ||
| 31920 | LD A,(31248) | front-hand item | ||
| 31923 | CP C | |||
| 31924 | CALL NZ,31857 | -> item name string | ||
| 31927 | LD (HL),A | row 8 | ||
| 31928 | INC HL | |||
| 31929 | LD A,(31249) | back-hand item | ||
| 31932 | CP C | |||
| 31933 | CALL NZ,31857 | |||
| 31936 | LD (HL),A | row 9 | ||
| 31937 | INC HL | |||
| 31938 | LD DE,29962 | any items lying in this room? | ||
| 31941 | LD A,(DE) | |||
| 31942 | CP C | |||
| 31943 | JR Z,31954 | |||
| 31945 | LD A,(31249) | and the back hand free? | ||
| 31948 | CP C | |||
| 31949 | JR NZ,31954 | |||
| 31951 | LD A,47 | yes: row 10 = "Get Item" | ||
| 31953 | LD (HL),A | |||
| 31954 | INC HL | |||
| 31955 | LD A,(31248) | front hand loaded? | ||
| 31958 | CP C | |||
| 31959 | RET Z | |||
| 31960 | LD A,48 | yes: row 11 = "Leave Item" | ||
| 31962 | LD (HL),A | |||
| 31963 | RET | |||
| Prev: 31857 | Up: Map | Next: 31964 |