Prev: 35837 Up: Map Next: 35931
35887: Insert numeric / text stats of an object into "examine object" window text
Used by the routine at 31370.
Input
HL Points to weight of an object
35887 LD A,(HL) Load A with weight of the object
35888 PUSH HL Store HL (pointer to weight of object)
35889 LD HL,46053 Point HL at numeric part of "WEIGHT XXX#" string
35892 CALL 36647 Splice numeric data A as a string into a string at HL
35895 POP HL Restore HL (pointer to weight of object)
35896 INC HL Advance HL to drop-status
35897 LD B,147 Load B with (index for text "YES")
35899 LD A,(HL) Load A with drop-status
35900 OR A If drop-status is zero (i.e. object can be dropped)...
35901 JR Z,35904 ...then skip ahead to 35904
35903 INC B Increase B to 148 (index for text "NO")
35904 LD A,B Load B into A...
35905 LD (46076),A ...and insert this text into the string "DROP STATUS X"
35908 INC HL Advance HL to "read text" index
35909 LD B,147 Load B with (index for text "YES")
35911 LD A,(HL) Load A with "read text" index
35912 OR A If "read text" index is not zero (i.e. object can be read)...
35913 JR NZ,35916 ...then skip ahead to 35904
35915 INC B Increase B to 148 (index for text "NO")
35916 LD A,B Load B into A...
35917 LD (46092),A ...and insert this text into the string "READ STATUS X"
35920 INC HL Advance HL to "magic power" value
35921 LD A,(HL) Load A with "magic power" value
35922 PUSH HL Store HL (pointer to magic power value)
35923 LD HL,46107 Point HL at numeric part of "MAGIC POWER XXX#" string
35926 CALL 36647 Splice numeric data A as a string into a string at HL
35929 POP HL Restore HL (pointer to object's magic power value)
35930 RET Return
Prev: 35837 Up: Map Next: 35931