Prev: 34174 Up: Map Next: 34202
34186: Point IX at current inventory of character A
Used by the routines at 30602 and 30880.
Input
A Index of a character
Output
IX Points to current inventory of character A
34186 PUSH DE Store DE
34187 LD E,A Multiply character index by five (as each character has five inventory slots)...
34188 ADD A,A ...
34189 ADD A,A ...
34190 ADD A,E ...
34191 LD E,A ...and load into DE...
34192 LD D,0 ...
34194 LD IX,25400 Point IX at start of characters' current inventories table (i.e. Gimbal's entry)
34198 ADD IX,DE Add five times character index to this as offset
34200 POP DE Restore DE
34201 RET Return
Prev: 34174 Up: Map Next: 34202