| Routines

75CC: Print a reprimand message

Used by the routine at 7700. Generates the graphic data for the text of a reprimand message (e.g. 'NOW FIND A SEAT') in the buffer at EC00, and then copies the buffer to the screen.
Input
A | Reprimand message identifier (0x00-0x0F)
DE | Attribute file address
75CC | PUSH DE | Save the attribute file address
75CD | RRCA | Point HL at the appropriate message
75CE | RRCA
75CF | LD H,A
75D0 | AND $C0
75D2 | SCF
75D3 | RRA
75D4 | LD L,A
75D5 | LD A,H
75D6 | AND $03
75D8 | ADD A,$DB
75DA | LD H,A
Now HL points at the appropriate message.
A | HL | Message
--- | --- | ---
0x00 | DB80 | DON'T SIT ON THE STAIRS
0x01 | DBA0 | THE ROOM IS PRIVATE
0x02 | DBC0 | GET TO WHERE YOU SHOULD BE
0x03 | DBE0 | NOW FIND A SEAT
0x04 | DC80 | GET OFF THE FLOOR
0x05 | DCA0 | COME ALONG WITH ME BOY
0x06 | DCC0 | HURRY UP YOU HORROR
0x07 | DCE0 | DON'T TRY MY PATIENCE BOY
0x08 | DD80 | NOW DON'T DO IT AGAIN
0x09 | DDA0 | DON'T TELL TALES
0x0A | DDC0 | NEVER BE LATE AGAIN
0x0B | DDE0 | AND STAY THIS TIME
0x0C | DE80 | DON'T TOUCH BLACKBOARDS
0x0D | DEA0 | CATAPULTS ARE FORBIDDEN
0x0E | DEC0 | DON'T HIT YOUR MATES
0x0F | DEE0 | YOU ARE NOT A KANGAROO
75DB | PUSH HL | Save the message address
75DC | LD DE,$EC30 | EC30=appropriate lines bubble graphic buffer address for the first line of the message
75DF | CALL $755A | Write the first line of the message
75E2 | CALL $75B4 | Draw the left and right edges of the bubble
75E5 | POP HL | Restore the message address to HL
75E6 | LD A,L | Point HL at the second half of the message
75E7 | ADD A,$10
75E9 | LD L,A
75EA | LD DE,$EC70 | EC70=appropriate lines bubble graphic buffer address for the second line of the message
75ED | CALL $755A | Write the second line of the message
75F0 | CALL $75B4 | Draw the left and right edges of the bubble
75F3 | LD B,$00 | Prepare B for the routine at 7531
75F5 | LD HL,$EC18 | EC18=first byte of the graphic data in the lines bubble graphic buffer
75F8 | JP $7531 | Transfer the lines bubble graphic data to the screen (the lines bubble attribute bytes are already on-screen)