home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
8bitfiles.net/archives
/
archives.tar
/
archives
/
genie-commodore-file-library
/
C64Software
/
JB.1520-3.B.SFX
/
totplotarea
(
.txt
)
< prev
next >
Wrap
Commodore BASIC
|
1990-02-12
|
714b
|
41 lines
1000 REM PLATZ & WGCA 1987
1010 REM TESTS REGISTER OF PEN & PAPER
1020 REM DRAWS 1 CM GRID OF PLOT AREA
1030 OPEN1,6,1
1040 OPEN2,6,2
1050 OPEN4,6,0
1060 PRINT#2,3
1070 FORP=1TO5:PRINT#4:NEXTP
1080 PRINT#4,"PLOTTABLE X,Y AREA"
1090 :
1100 REM HORIZONTAL LINES AT 1 CM
1110 FORP=1TO10:PRINT#4:NEXTP
1120 PRINT#1,"M";0,-998
1130 REM GIVE SOME SPACE
1140 FORP=1TO5:PRINT#4:NEXTP
1150 PRINT#1,"H"
1160 :
1170 REM VERTICAL LINES AT 1 CM
1180 FORI=50TO479STEP100
1190 PRINT#1,"M",I-50,-998
1200 PRINT#1,"D",I-50,998
1210 PRINT#1,"M",I,998
1220 PRINT#1,"D",I,-998
1230 NEXT I
1240 PRINT#1,"M";479,-998
1250 PRINT#1,"D";479,998
1260 PRINT#1,"D";0,998
1270 FORJ=948TO-998STEP-100
1280 PRINT#1,"M",0,J
1290 PRINT#1,"D",479,J
1300 IFJ-50=<-998THEN1330
1310 PRINT#1,"M",479,J-50
1320 PRINT#1,"D",0,J-50
1330 NEXT J
1340 PRINT#1,"M";0,-998
1350 PRINT#1,"D";479,-998
1360 PRINT#1,"M",0,-998
1370 FORP=1TO5:PRINT#4:NEXTP
1380 CLOSE4:CLOSE2:CLOSE1
1390 END