Prev: 6DA3 Up: Map Next: 6DE6
6DC0: Check for alternate bitmap.
Used by the routine at Screen_DrawColumn.
Input
A Index of bitmap to look for.
6F1B Holds item flags.
AltBitmapSearch 6DC0 PUSH AF
6DC1 LD A,(T1) Only look if flags are set.
6DC4 AND A
6DC5 JR NZ,AltBitmapsSearch_Exit
6DC7 LD HL,($DFF5) Array of matching bitmap indices.
6DCA LD A,L First two items zero, means empty list.
6DCB OR H
6DCC JR Z,AltBitmapsSearch_Exit
6DCE POP AF See if bitmap index is in list.
6DCF LD BC,$000C
6DD2 CPIR
6DD4 RET NZ
6DD5 DEC HL If it is then find alternate in matching list.
6DD6 LD BC,($DFF5)
6DDA AND A
6DDB SBC HL,BC
6DDD LD BC,($DFF7)
6DE1 ADD HL,BC
6DE2 LD A,(HL)
6DE3 RET
AltBitmapsSearch_Exit 6DE4 POP AF
6DE5 RET
Prev: 6DA3 Up: Map Next: 6DE6