Prev: DCDC Up: Map Next: DD6F
DD52: Routine at DD52
Used by the routines at DB7E, DBE5, DC4B and MoveTile_Up.
DD52 LD HL,$E761 HL=E761.
DD55 LD A,$14 A=14.
DD57 SUB (HL) A-=*HL.
DD58 LD C,B C=B.
DD59 SLA C Shift C left two positions (with carry).
DD5B SLA C
DD5D ADD A,C A+=C.
DD5E LD C,A C=A.
DD5F LD A,$05 A=05.
DD61 LD B,C B=C.
DD62 SLA B Shift B left (with carry).
DD64 DJNZ $DD64 Decrease counter by one and loop back to DD64 until counter is zero.
DD66 XOR %00010000 Flip bits 4.
DD68 OUT ($FE),A Set border to the colour held by A.
DD6A DEC C Decrease C by one.
DD6B JP NZ,$DD61 Jump to DD61 if C is not zero.
DD6E RET Return.
Prev: DCDC Up: Map Next: DD6F