Prev: 42638 Up: Map Next: 43000
42938: Insert numeric stats (at HL) of a character into "examine character" window text
Used by the routine at 42638.
Input
HL Address of start of a character's current stats
42938 PUSH HL Store HL (address of start of character's stats)
42939 LD A,(HL) Load character's strength into A...
42940 AND 127 ...and remove bit 7 (unused)
42942 PUSH HL Store HL (strength position in character's stats)
42943 LD HL,52187 Point HL at start of " 99 " segment for strength in character's stats text at 52180
42946 CALL 46837 Splice numeric strength data as a string into character's stats text
42949 POP HL Restore HL (strength position in character's stats)
42950 INC HL Advance HL to happiness position
42951 LD A,(HL) Load character's happiness into A...
42952 AND 127 ...and remove bit 7 (unused)
42954 PUSH HL Store HL (happiness position in character's stats)
42955 LD HL,52203 Point HL at start of " 99 " segment for happiness in character's stats text at 52180
42958 CALL 46837 Splice numeric happiness data as a string into character's stats text
42961 POP HL Restore HL (happiness position in character's stats)
42962 INC HL Advance HL to stamina position
42963 LD A,(HL) Load character's stamina into A...
42964 AND 127 ...and remove bit 7 (unused)
42966 PUSH HL Store HL (stamina position in character's stats)
42967 LD HL,52217 Point HL at start of " 99 " segment for stamina in character's stats text at 52180
42970 CALL 46837 Splice numeric stamina data as a string into character's stats text
42973 POP HL Restore HL (stamina position in character's stats)
42974 INC HL Advance HL to magic level position
42975 LD A,(HL) Load character's magic level into A...
42976 AND 127 ...and remove bit 7 (can-help flag)
42978 PUSH HL Store HL (magic level position in character's stats)
42979 LD HL,52229 Point HL at start of " 99 " segment for magic level in character's stats text at 52180
42982 CALL 46837 Splice numeric magic level data as a string into character's stats text
42985 POP HL Restore HL (magic level position in character's stats)
42986 INC HL Advance HL to food level position...
42987 INC HL ...
42988 INC HL ...
42989 LD A,(HL) Load character's food level into A...
42990 AND 127 ...and remove bit 7 (asleep flag)
42992 LD HL,52245 Point HL at start of " 99 " segment for magic level in character's stats text at 52180
42995 CALL 46837 Splice numeric magic level data as a string into character's stats text
42998 POP HL Restore HL (address of start of character's stats)
42999 RET Return
Prev: 42638 Up: Map Next: 43000