Prev: 33569 Up: Map Next: 33601
33585: Point IX at current inventory of character A
Used by the routines at 29619, 29756 and 33896.
Input
A Index of a character
Output
IX Points to current inventory of character A
33585 PUSH DE Store DE
33586 LD E,A Multiply character index by five (as each character has five inventory slots)...
33587 ADD A,A ...
33588 ADD A,A ...
33589 ADD A,E ...
33590 LD E,A ...and load into DE...
33591 LD D,0 ...
33593 LD IX,25174 Point IX at Gordon's entry in characters' current inventories table (i.e. first entry for non-player characters)
33597 ADD IX,DE Add five times character index to this as offset
33599 POP DE Restore DE
33600 RET Return
Prev: 33569 Up: Map Next: 33601