Prev: 32151 Up: Map Next: 32399
32363: Remove Speech Bubble
couch
Used by the routine at Messaging_Girl.
RemoveSpeechBubble 32363 LD DE,38694 Set the source address as Graphics_Couch.
32366 LD HL,16397 Set the destination address in the screen buffer to 16397.
32369 LD B,7 B=7 (width).
32371 LD C,32 C=32 (height).
32373 CALL PrintGraphic Call PrintGraphic.
Recolour the background.
32376 LD HL,22541 HL=22541 (attribute buffer location).
32379 LD C,4 C=4 (height in character blocks).
RemoveSpeechBubble_RowLoop 32381 LD B,7 B=7 (width).
RemoveSpeechBubble_Loop 32383 LD A,(DE) Copy one byte of attribute data to the attribute buffer.
32384 LD (HL),A
32385 INC DE Increment the source attribute data pointer by one.
32386 INC HL Increment the attribute buffer pointer by one.
32387 DJNZ RemoveSpeechBubble_Loop Decrease the counter by one and loop back to RemoveSpeechBubble_Loop until the counter is zero.
32389 PUSH DE Briefly stash DE on the stack.
32390 LD DE,25 Add 0025 to HL to move onto the next row.
32393 ADD HL,DE
32394 POP DE Restore DE from the stack.
32395 DEC C Decrease the counter by one and jump back to RemoveSpeechBubble_RowLoop until the counter is zero.
32396 JR NZ,RemoveSpeechBubble_RowLoop
32398 RET Return.
Prev: 32151 Up: Map Next: 32399