Retro video games delivered to your door every month!
Click above to get retro games delivered to your door ever month!
PRINT CHARACTERS IN PC8 SYMBOL SET DEFINITION Symbol sets are unique groupings of characters (alphabetic, numeric, punctuation and special symbols) designed to meet the requirements of specific languages and occupations. This program prints the entire PC-8 symbol set including the normally transparent symbols. For more information concerning symbol sets refer to your printer user's manual or the PCL5 Printer Language Technical Reference Manual. Note: This example is written using GWBASIC as it utilizes specific commands only available through a programming language. Each program language has a different set of commands to perform a similar function. This cannot be done in EDIT due to the for/next loop command. PRINT ALL CHARACTERS IN PC-8 SYMBOL SET 10 WIDTH "LPT1:",255 Statement prevents Basic from inserting carriage return after 80 character are printed. 20 LPRINT CHR$(27);"E" Printer Reset 30 LPRINT CHR$(27);"&s0C" Enables end of line wrap 40 LPRINT CHR$(27);"(10U" Selects the PC-8 Symbol Set 50 LPRINT Selects a 10 pitch, 12 CHR$(27);"(s0p10h12v0s0b3T" point, upright medium, Courier Font. 60 FOR I =1 TO 255 BASIC Command beginning the For/ Next loop which defines the range of values to be printed. 70 LPRINT CHR$(27);"&p1X" Allows normally unprintable characters to be printed 80 LPRINT CHR$(I); Basic command which prints the current character 90 NEXT I Basic command which end loop. 100 LPRINT CHR$(27);"E" Resets and Ejects page 110 END Ends Program In Basic Copyright Hewlett-Packard Co. 1993 The information contained herein is subject to change without notice. Hewlett-Packard shall not be liable for incidental or consequential damages in connection with the use of this material.