Prev: B943 Up: Map Next: B98E
B96B: Update color attribute for weapon icon on HUD
Used by the routines at 947A and A915.
B96B LD A,($A042) Return if HDU flash active
B96E CP $FF
B970 RET NZ
B971 LD HL,($A015) Set HL to the pointer into attribute file for the weapon icon
B974 CALL $B97E Handle icon weapon color change
B977 LD HL,($A015) Set HL to the pointer into attribute buffer for the weapon icon
B97A LD DE,$8CFF
B97D ADD HL,DE
B97E LD A,($A014) Set A the color attribute based on weapon energy level
B981 INC A
B982 INC A
Set weapon icon in HUD the color attribute at A
B983 LD (HL),A Set color attribute for first row
B984 INC HL
B985 LD (HL),A
B986 LD DE,$001F Point HL to the next row
B989 ADD HL,DE
B98A LD (HL),A Set color attribute for the second row
B98B INC HL
B98C LD (HL),A
B98D RET
Prev: B943 Up: Map Next: B98E