Bold Face Type

See all articles from CATS v3 n2
Author(s): Roald Schrack
Publication: CATS Newsletter
Pub Details: CATS v3 n2 (Volume 3, Issue 2)
Date: May 1985
Pages: 14

Here is a program that will allow you to mix BOLD FACE and regular type. After loading the progam and entering run you are presented with a blank screen.

Normal typing will be obtained until you enter the token “STEP”,after that everything will be in BOLD FACE TYPE until you enter the token “STOP”.

Line 30 loads the machine language program. The definitions of each character are obtained from the ROM . As shown below each character is made up of 8 lines.

To get bold face type each line is shifted to the right by one bit and then “OR” ed back with the original line. This is accomplished in the machine language program. The augmented lines are then used to build a character in the user defined graphics area in position # 145.

  10 CLEAR 65267
12 LET mode=0
20 LET a=65268
30 FOR i=1 TO 10: READ n: POKE a,n: LET a=a+1
40 NEXT i
50 LET c=PEEK 23606+256*PEEK 23607+256
60 PAUSE 0: LET a$=INKEY$: IF (CODE a$<>205 AND CODE a$<>226) THEN GO TO 64
62 IF CODE a$=205 THEN LET mode=1: GO TO 60
63 IF CODE a$=226 THEN LET mode=0: GO TO 60
64 IF CODE a$=13 THEN GO TO 66
65 IF mode=1 THEN GO TO 68
66 PRINT a$;: GO TO 60
68 LET j=CODE a$-32
70 FOR p=0 TO 7
80 LET byte=PEEK (c+p+j*8): POKE 65269,byte:
90 RANDOMIZE USR 65268
100 LET byte=PEEK 65278
110 POKE USR CHR$ 145+p,byte
120 NEXT p
130 PRINT CHR$ 145;
140 GO TO 60
150 DATA 62,0,71,203,63,176,50,254,254,201,0
160 SAVE "BOLD" LINE 10
65268 ld a,n
65270 ld b,a
65271 srl a
65273 or b
65274 ld (nn),a 65278
65277 ret
65278 nop

Disassembly of machine language program.

The letter A before and after augmentation (CHR$ 65 and CHR$ 145)
The letter A before and after augmentation (CHR$ 65 and CHR$ 145)

Representation of the letter A before and after augmentation.

Now is the TIME for all good men to come to the aid of their PARTY.

R. A. Schrack


Coming in June

Hank Dickson sends word that Timex 1000’s appeared in two science fair exhibits. He’s working on an article and a presentation at the June meeting, so we can see what these kids have done.

Note: Type-in program listings on this website use ZMAKEBAS notation for graphics characters.