L

i i- r

I 1

j L

:L-

&.

L

.

c

i.

c

Creating Your Own Characters

97

480Z(G,H)=l:COLOR31,l:LOCATEX+4,Y+l@:PRINT SC$;:COLOR7,g:RETURN

490Z(G,H)=@:COLOR7,g:LOCATEX+4,Y+l@:PRINT CS$;:COLOR7,g:RETURN

500 REM,**** GET OUT OF EDIT MODE ****

510 FOR I=2 TO 10:LOCATE1,55:PRINT STRING$(20,32);:NEXT

520IF Z(G,H)=l THEN LOCATE X+4,Y+@:COLOR 7,g:PRINT SC$;:GOTO 540

530IF Z(G,H)=@ THEN LOCATE X+4,Y+l0:COLOR7,g:PRINT 'I '1.

540 REM'**** PRINT THE COLUMN - VALUES ****

550 FOR I=1 TO 11:FOR J=l TO 7

560MM(I)=MM(I)+Z(J,I)*2"(J-l):NEXTJ:NEXT I

570J=@:FOR I=1 TO ll:LOCATE19,10+J:PRINT RIGHT$(STR$(MM(I)),j);:J=J+j:NEXT

580GOSUB 660 :RETURN

590REM **** DISPLAY MENU FOR EDIT MODE ****

600 LOCATE 2,55:PRINT “cursor

movement”;

610LOCATE 4,60:PRINTCHR$(24);:LOCATE5,58:PRINT

CHR$(27);" *

620PRINT CHR$(26;;:LOCATE6,60:PRINTCHR$(25)

630LOCATE 8,55:PRINT"(ins) insert";

640LOCATE 9,55:PRINT "(del) delete";

650LOCATE 10,55:PRINT"(end) exit edit";:RETURN

660FOR I=1 TO 7:FOR J=l TO ll:Z(I,J)=@:NEXTJ:NEXT

T

670'LOCATE24,2:PRINT"E) EDIT P) PRINTER (ESC) ) END ";:RETURN

680 REM **** PRINT MODE ****

690 LOCATE 20,5:INPUT "NORMALOR PROPORTIONAL (W P) -) ";AN$

700IF A,$="," THEN PR=@:GOTO750

710IF AN$="P" THEN GOT0 730

720BEEP:GOTO 690

730LOCATE 21,5:INPUT'ENTER THE PROPORTIONALDATA (4-11) -) ";PR

740IF PR(4 OR PR)ll THEN 730

750LOCATE 22,5:INPUT'IF SHIFTED DOWN ENTER 1 ELSE ENTER 0 -) ";SH

760IF SH(0 OR SH)l THEN BEEP:GOTO750

770LOCATE 23,5:INPUT'ENTER YOUR ASCII CODE (33-126 OR 160-254)-> ";AS

780IF (AS(32 AND AS)126) OR (~S(l60AND AS)254) THEN 770

Page 109
Image 109
Star Micronics Delta user manual Gosub 660 Return REM **** Display Menu for Edit Mode