Prev: 85E1 Up: Map Next: 87BF
8798: Blit the background behind the Sidhe.
Used by the routines at Vectors and BgUpdate.
Sidhe_BlitBg 8798 LD DE,(Baddy_OffscreenPtr) Get where to blit on offscreen.
879C LD A,E
879D OR D
879E RET Z
879F LD BC,(BaddyWidth) Get width and height of Sidhe.
87A3 LD A,B
87A4 LD B,$00
87A6 LD HL,$F53A Get address of stored background.
Sidhe_BlitBg_0 87A9 PUSH BC
87AA PUSH DE
87AB LDIR
87AD POP DE
87AE EX DE,HL
87AF LD BC,$0022
87B2 ADD HL,BC
87B3 EX DE,HL
87B4 POP BC
87B5 DEC A
87B6 JR NZ,Sidhe_BlitBg_0
87B8 LD HL,$0000
87BB LD (Baddy_OffscreenPtr),HL
87BE RET
Prev: 85E1 Up: Map Next: 87BF