Prev: 61733 Up: Map Next: 61832
61796: Show Enemy
Event 24: show the first hidden enemy.
Event_ShowEnemy 61796 LD IX,(25650) IX=*ReferenceEnemies.
Event_ShowEnemy_Target 61800 LD A,(IX+0) Return if the terminator 255 is reached.
61803 CP 255
61805 RET Z
61806 BIT 7,A Jump to Event_ShowEnemy_Skip if this enemy is already visible.
61808 JR Z,Event_ShowEnemy_Skip
61810 AND %01111111 Keep only bits 0-6.
61812 LD (IX+0),A Write the visible ID.
61815 LD C,A BC=the column and row; size 3 by 2.
61816 LD B,(IX+1)
61819 LD DE,770
61822 CALL JumpTable_DrawBox Call JumpTable_DrawBox.
Event_ShowEnemy_Skip 61825 LD DE,14 IX+=0014.
61828 ADD IX,DE
61830 JR Event_ShowEnemy_Target Jump to Event_ShowEnemy_Target.
Prev: 61733 Up: Map Next: 61832