Prev: 30115 Up: Map Next: 30156
30132: Draw the left and right edges of a lines bubble
Used by routines at 30156 and 30208. Draws the left and right edges of the lines bubble against the lines of text just written into the graphic buffer (at 60160 or 60416).
Input
DE Graphic buffer address
30132 LD HL,65473 Point HL at the top left corner of the text that was just written into the graphic buffer
30135 ADD HL,DE
30136 LD DE,7 This is the 'distance' (in bytes) between the left and right edges of the graphic buffer
30139 LD BC,30115 Point BC at the graphic data table at 30115
30142 LD A,(BC) Pick up a bubble left-edge graphic byte in A
30143 INC C Move BC along in the graphic data table
30144 INC A Have we finished drawing the edges?
30145 RET Z Return if so
30146 OR (HL) Superimpose the bubble left-edge graphic byte
30147 LD (HL),A
30148 ADD HL,DE Move over to the right edge
30149 LD A,(BC) Pick up a bubble right-edge graphic byte in A
30150 INC C Move BC along in the graphic data table
30151 OR (HL) Superimpose the bubble right-edge graphic byte
30152 LD (HL),A
30153 INC HL Move back to the left edge, one pixel row down
30154 JR 30142 Jump back to superimpose another edge graphic byte
Prev: 30115 Up: Map Next: 30156