Prev: F125 Up: Map Next: F188
F164: Show Enemy
Event 18: show the first hidden enemy.
Event_ShowEnemy F164 LD IX,($6432) IX=*ReferenceEnemies.
Event_ShowEnemy_Target F168 LD A,(IX+$00) Return if the terminator FF is reached.
F16B CP $FF
F16D RET Z
F16E BIT 7,A Jump to Event_ShowEnemy_Skip if this enemy is already visible.
F170 JR Z,Event_ShowEnemy_Skip
F172 AND %01111111 Keep only bits 0-6.
F174 LD (IX+$00),A Write the visible ID.
F177 LD C,A BC=the column and row; size 03 by 02.
F178 LD B,(IX+$01)
F17B LD DE,$0302
F17E CALL JumpTable_DrawBox Call JumpTable_DrawBox.
Event_ShowEnemy_Skip F181 LD DE,$000E IX+=000E.
F184 ADD IX,DE
F186 JR Event_ShowEnemy_Target Jump to Event_ShowEnemy_Target.
Prev: F125 Up: Map Next: F188