home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
The World of Computer Software
/
World_Of_Computer_Software-02-386-Vol-2of3.iso
/
b
/
bbl-v-1.zip
/
BBL-DEMO.BAS
< prev
next >
Wrap
BASIC Source File
|
1992-08-22
|
831b
|
30 lines
OPEN "bbl-drvr" FOR OUTPUT AS #1
mode$ = CHR$(14) 'mode introducer
vt$ = CHR$(11) 'vertical position introducer
ht$ = CHR$(9) 'horizontal position introducer
bs$ = CHR$(8) 'backspace
cr$ = CHR$(13) 'carriage return
lf$ = CHR$(10) 'line feed
PRINT #1, mode$; "0" 'set to mode 0 and write out two lines
PRINT #1, "12.34"
PRINT #1, "56.78"
PRINT #1, mode$; "1" 'just one line in mode 1
PRINT #1, "12.34"
' ... and in mode 2, only 3 chars wide
PRINT #1, mode$; "2"
PRINT #1, "012"
start = TIMER
PRINT #1, mode$; "1" 'in mode 1 ...
FOR i = 0 TO 99
PRINT #1, ht$; "1" 'go to position 1
PRINT #1, USING "###"; i 'and write an integer
NEXT i
endt = TIMER
PRINT "Elapsed time for 100 iterations = "; endt - start; "sec"
END