Prev: BB24 Up: Map Next: BB5C
BB45: Routine at BB45
Used by the routine at A680.
AttrDrawUnchanged BB45 PUSH BC Stash BC and HL on the stack.
BB46 PUSH HL
AttrDrawUnchanged_0 BB47 LD A,(HL)
BB48 AND %00111000 Keep only bits 3-5.
BB4A JR NZ,AttrDrawUnchanged_1
BB4C LD (HL),D
AttrDrawUnchanged_1 BB4D INC L
BB4E DJNZ AttrDrawUnchanged_0
BB50 POP HL Restore HL from the stack.
BB51 LD BC,$0020 BC=0020.
BB54 AND A
BB55 SBC HL,BC
BB57 POP BC Restore BC from the stack.
BB58 DEC C Decrease C by one.
BB59 JR NZ,AttrDrawUnchanged Jump to AttrDrawUnchanged unless C is zero.
BB5B RET Return.
Prev: BB24 Up: Map Next: BB5C