Prev: B5E1 Up: Map Next: B5FD
B5EC: Find the address of object string(n)
Used by the routines at 8FA9, Print_FactorMessage and Pockets_UpdateInv.
Input
A Object text index
ObjStr_FindByIndex B5EC AND $7F Limit index to 127 descriptions
B5EE LD E,A Scan through strings, looking for each END OF STRING marker.
B5EF LD HL,Str_Objects
B5F2 LD BC,$0000
B5F5 LD A,$5E
ObjStr_FindByIndex_0 B5F7 CPIR
B5F9 DEC E When found keep going until we count the given index.
B5FA JR NZ,ObjStr_FindByIndex_0
B5FC RET Return address of string in HL
Prev: B5E1 Up: Map Next: B5FD