home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
CP/M
/
CPM_CDROM.iso
/
mbug
/
mbug013.arc
/
BOLDULIN.BAK
< prev
next >
Wrap
Text File
|
1979-12-31
|
2KB
|
47 lines
procedure BoldUnderline;
{ This procedure copies the normal
character set into the PCG memory,
except that it also emboldens the
characters. It also sets the last
line of the character, giving bold
underlined characters.
Writen by Neil Bown/Gordon Rowell.
}
begin { BoldUnderline }
{ SCNTOP EQU 0F000H }
{ PCGRAM EQU 0F800H }
{ ROMPORT EQU 0BH }
inline($3E/ $01/ {BOLD: LD A,1 }
$D3/ $0B/ { OUT (ROMPORT),A }
$21/ $F000/ { LD HL,SCNTOP }
$11/ $F800/ { LD DE,PCGRAM }
{ BOLD_1: }
$7E/ { LD A,(HL) }
$07/ { RLCA }
$B6/ { OR (HL) }
$12/ { LD (DE),A }
$23/ { INC HL }
$13/ { INC DE }
$CB/ $5C/ { BIT 3,H }
$28/ $F6/ { JR Z,BOLD_1 }
{ UNDERLINE: }
$01/ >$0010/ { LD BC,10H }
$21/ $F80A/ { LD HL,PCGRAM+0AH }
{ ULINE_1: }
$7E/ { LD A,(HL) }
$2F/ { CPL }
$77/ { LD (HL),A }
$09/ { ADD HL,BC }
$30/ $FA/ { JR NC,ULINE_1 }
$AF/ { XOR A }
$D3/ $0B { OUT (ROMPORT),A }
)
end; { BoldUnderline }