Routines

27462: Print message box


Used by routines at 29716 and 32433

A Message number
C Attribute byte to use for message
DE Attribute file address at which to print message

27462 2128E4 LD HL,58408 The graphic data for the lines message will be stored here
27465 0618 LD B,24 24=3 lines of 8 character squares
27467 71 LD (HL),C Fill in the attributes
27468 2C INC L
27469 10FC DJNZ 27467
27471 D5 PUSH DE Save attribute file address temporarily
27472 6F LD L,A
27473 26FE LD H,254
27475 5E LD E,(HL)
27476 24 INC H
27477 56 LD D,(HL) DE=address of message to print
27478 2158E4 LD HL,58456
27481 CD1B6B CALL 27419 Prepare first line of message in a buffer ready to be transferred to the screen
27484 2198E4 LD HL,58520
27487 CD1F6B CALL 27423 Prepare second line of message in a buffer ready to be transferred to the screen
27490 D1 POP DE Retrieve attribute file address for message
27491 2128E4 LD HL,58408 Point to start of buffer to be transferred to screen
27494 C3E46A JP 27364 Jump to transfer the buffer to the screen