Prev: 34859 Up: Map Next: 34883
34864: Point DE at name of a selected object in object names table and print in command summary window
Used by the routines at 30439, 30602, 30880, 31370, 32258, 32390 and 33312.
Input
A ASCII code of letter corresponding to an inventory slot (e.g. "B" is second inventory slot)
HL Points to start of a character's inventory
34864 SUB 65 Convert A from ASCII code to inventory slot number
34866 LD E,A Load inventory slot number into DE...
34867 LD D,0 ...
34869 ADD HL,DE Add to HL as offset
34870 LD A,(HL) Load index of object in that slot into A
34871 LD (30467),A Set this object as the Current Object
34874 LD B,A Also load index into B
34875 CALL 34842 Point HL at name of object in object names table
34878 EX DE,HL Switch registers so DE points to object name and HL contains inventory slot number
34879 CALL 38693 ...and print in command summary window at bottom of screen
34882 RET Return
Prev: 34859 Up: Map Next: 34883