Home » Personal collection » Commodore tapes » Commodore_64 » drawer_tr_tape01a_d60_c64_tape.wav » graphics module
graphics module
This website contains an archive of files for the Acorn Electron, BBC Micro, Acorn Archimedes, Commodore 16 and Commodore 64 computers, which Dominic Ford has rescued from his private collection of floppy disks and cassettes.
Some of these files were originally commercial releases in the 1980s and 1990s, but they are now widely available online. I assume that copyright over them is no longer being asserted. If you own the copyright and would like files to be removed, please contact me.
Tape/disk: | Home » Personal collection » Commodore tapes » Commodore_64 » drawer_tr_tape01a_d60_c64_tape.wav |
Filename: | graphics module |
Read OK: | ✔ |
File size: | 0533 bytes |
Load address: | 0801 |
Exec address: | 0000 |
File contents
10000 REM PLOTTER 10010 AD=INT(X/8)+Y*320+BA 10020 PO=(X/8-INT(X/8)*10)^2 10030 POKEAD,PEEK(AD)ORPO:IFI=1THENPOKEAD,PEEK(AD)-PO 10040 RETURN 10050 REM DRAW 10060 XL=X-XB:IFXL<0THENXL=XB-X 10070 YL=Y-YB:IFYL<0THENYL=YB-Y 10080 DIR=1:AM=XL/YL:XA=X:YA=Y 10090 IFAM<1THENDIR=2:AM=YL/XL 10100 IFDIR=2THEN10140 10110 IFX<XA THENX=X+1 10120 IFX>XA THENX=X-1 10130 X=XA:Y=YA:GOSUB10010 10140 IFXA=XB ORRE=1THENRETURN 10150 IFINT((XA-X)/AM)<>(XA-X)/AM THEN 10110 10160 IFY<YA THEN Y=Y+1 10170 IFY>YA THEN Y=Y-1 10180 GOSUB10010:XA=X:YA=Y:GOTO10110 10190 IFY<YA THEN Y=Y+1 10200 IFY>YA THEN Y=Y-1 10210 X=XA:Y=YA:GOSUB10010 10220 IF YA=YB OR RE=1 THEN RETURN 10230 IF INT(YA-Y)/AM)<>(YA-Y)/AM THEN 10190 10240 IF X<XB THEN X=X+1 10250 IF X>XB THEN X=X-1 10260 GOSUB 10010:XA=X:YA=Y:GOTO 10190 10270 REM TRIANGLE 10280 RE=1:X=1X:Y=1Y:XB=2X:YB=2Y 10290 GOSUB10060:IFX=XB AND Y=YB THEN RETURN 10300 A=X:B=Y:C=AM:D=DIR:E=YL:F=XL:RE=0 10310 XB=3X:YB=3Y:GOSUB 10060 10320 X=A:Y=B:AM=C:DIR=D:YL=E:XL=F:RE=1 10330 XA=X:YA=Y:IF DIR=1 THEN GOSUB 10150 10340 IF DIR=2 THEN GOSUB 1230 10350 IF X=XB AND Y=YB THEN RETURN 10360 GOTO 10300 10370 REM HI-RES ON 10380 FORLO=0TO81 10390 READMC:POKE49152+LO,MC:NEXT 10400 SYS 49152:RETURN 10410 DATA 169,32,141,17,208,173,24,208,9,8,141,24,208,169,0,133,251,169,32 10420 DATA 133,252,160,0,169,0,144,251,230,251,197,251,208,2,230,252,169,63 10430 DATA 197,251,208,238,197,252,208,234,169,0,133,251,169,4,133,252,160,0 10440 DATA 169,13,145,251,230,251,169,0,197,251,208,2,230,252,169,231,197,252 10450 DATA 208,236,169,7,197,252,208,230,96 10460 REM HI-RES OFF 10470 POKE56578,PEEK(56578) OR 3 10480 POKE56576,(PEEK(56576) AND 252) OR 3 10490 RETURN
'� PLOTTER &'AD��(X�8)�Y�320�BA ?$'PO�(X�8��(X�8)�10)�2 b.'�AD,�(AD)�PO:�I�1��AD,�(AD)�PO h8'� sB'� DRAW �L'XL�X�XB:�XL�0�XL�XB�X �V'YL�Y�YB:�YL�0�YL�YB�Y �`'DIR�1:AM�XL�YL:XA�X:YA�Y �j'�AM�1�DIR�2:AM�YL�XL �t'�DIR�2�10140 �~'�X�XA �X�X�1 �'�X�XA �X�X�1 % �'X�XA:Y�YA:�10010 8 �'�XA�XB �RE�1�� ] �'��((XA�X)�AM)��(XA�X)�AM � 10110 o �'�Y�YA � Y�Y�1 � �'�Y�YA � Y�Y�1 � �'�10010:XA�X:YA�Y:�10110 � �'�Y�YA � Y�Y�1 � �'�Y�YA � Y�Y�1 � �'X�XA:Y�YA:�10010 � �'� YA�YB � RE�1 � � �'� �(YA�Y)�AM)��(YA�Y)�AM � 10190 % (� X�XB � X�X�1 8 (� X�XB � X�X�1 V (� 10010:XA�X:YA�Y:� 10190 e (� TRIANGLE � ((RE�1:X�1X:Y�1Y:XB�2X:YB�2Y � 2(�10060:�X�XB � Y�YB � � � <(A�X:B�Y:C�AM:D�DIR:E�YL:F�XL:RE�0 � F(XB�3X:YB�3Y:� 10060 P(X�A:Y�B:AM�C:DIR�D:YL�E:XL�F:RE�1 $Z(XA�X:YA�Y:� DIR�1 � � 10150 9d(� DIR�2 � � 1230 On(� X�XB � Y�YB � � [x(� 10300 k�(� HI-RES ON x�(�LO�0�81 ��(�MC:�49152�LO,MC:� ��(� 49152:� ��(� 169,32,141,17,208,173,24,208,9,8,141,24,208,169,0,133,251,169,32 +�(� 133,252,160,0,169,0,144,251,230,251,197,251,208,2,230,252,169,63 s�(� 197,251,208,238,197,252,208,234,169,0,133,251,169,4,133,252,160,0 ��(� 169,13,145,251,230,251,169,0,197,251,208,2,230,252,169,231,197,252 ��(� 208,236,169,7,197,252,208,230,96 ��(� HI-RES OFF �(�56578,�(56578) � 3 , �(�56576,(�(56576) � 252) � 3 2 �(�
OHP'. plotter@&HZ'ad..(x.8).y.320.ba@?H$'po.(x.8..(x.8).10).2@BH.'.ad,.(ad).po:.i.1..ad,.(ad).po@HH8'.@SHb'. draw@.Hl'xl.x.xb:.xl.0.xl.xb.x@.Hv'yl.y.yb:.yl.0.yl.yb.y@.H.'dir.1:am.xl.yl:xa.x:ya.y@.HJ'.am.1.dir.2:am.yl.xl@.HT'.dir.2.10140@.H.'.x.xa .x.x.1@PI.'.x.xa .x.x.1@%I.'x.xa:y.ya:.10010@8I.'.xa.xb .re.1..@]I.'..((xa.x).am)..(xa.x).am . 10110@OI.'.y.ya . y.y.1@.I.'.y.ya . y.y.1@.I.'.10010:xa.x:ya.y:.10110@.I.'.y.ya . y.y.1@.I.'.y.ya . y.y.1@.I.'x.xa:y.ya:.10010@.I.'. ya.yb . re.1 . .@RJ.'. .(ya.y).am)..(ya.y).am . 10190@%J@(. x.xb . x.x.1@8JJ(. x.xb . x.x.1@vJT(. 10010:xa.x:ya.y:. 10190@EJ.(. triangle@.J((re.1:x.1x:y.1y:xb.2x:yb.2y@.J2(.10060:.x.xb . y.yb . .@.J<(a.x:b.y:c.am:d.dir:e.yl:f.xl:re.0@.Jf(xb.3x:yb.3y:. 10060@DKp(x.a:y.b:am.c:dir.d:yl.e:xl.f:re.1@$Kz(xa.x:ya.y:. dir.1 . . 10150@9KD(. dir.2 . . 1230@oKN(. x.xb . y.yb . .@[KX(. 10300@KK.(. hi-res on@XK.(.lo.0.81@.K.(.mc:.49152.lo,mc:.@.K.(. 49152:.@.K.(. 169,32,141,17,208,173,24,208,9,8,141,24,208,169,0,133,251,169,32@+L.(. 133,252,160,0,169,0,144,251,230,251,197,251,208,2,230,252,169,63@SL.(. 197,251,208,238,197,252,208,234,169,0,133,251,169,4,133,252,160,0@.L.(. 169,13,145,251,230,251,169,0,197,251,208,2,230,252,169,231,197,252@.L.(. 208,236,169,7,197,252,208,230,96@.L.(. hi-res off@LM.(.56578,.(56578) . 3@,M.(.56576,(.(56576) . 252) . 3@2M.(.@@@
00000000 0f 08 10 27 8f 20 50 4c 4f 54 54 45 52 00 26 08 |...'. PLOTTER.&.| 00000010 1a 27 41 44 b2 b5 28 58 ad 38 29 aa 59 ac 33 32 |.'AD..(X.8).Y.32| 00000020 30 aa 42 41 00 3f 08 24 27 50 4f b2 28 58 ad 38 |0.BA.?.$'PO.(X.8| 00000030 ab b5 28 58 ad 38 29 ac 31 30 29 ae 32 00 62 08 |..(X.8).10).2.b.| 00000040 2e 27 97 41 44 2c c2 28 41 44 29 b0 50 4f 3a 8b |.'.AD,.(AD).PO:.| 00000050 49 b2 31 a7 97 41 44 2c c2 28 41 44 29 ab 50 4f |I.1..AD,.(AD).PO| 00000060 00 68 08 38 27 8e 00 73 08 42 27 8f 20 44 52 41 |.h.8'..s.B'. DRA| 00000070 57 00 8d 08 4c 27 58 4c b2 58 ab 58 42 3a 8b 58 |W...L'XL.X.XB:.X| 00000080 4c b3 30 a7 58 4c b2 58 42 ab 58 00 a7 08 56 27 |L.0.XL.XB.X...V'| 00000090 59 4c b2 59 ab 59 42 3a 8b 59 4c b3 30 a7 59 4c |YL.Y.YB:.YL.0.YL| 000000a0 b2 59 42 ab 59 00 c4 08 60 27 44 49 52 b2 31 3a |.YB.Y...`'DIR.1:| 000000b0 41 4d b2 58 4c ad 59 4c 3a 58 41 b2 58 3a 59 41 |AM.XL.YL:XA.X:YA| 000000c0 b2 59 00 dd 08 6a 27 8b 41 4d b3 31 a7 44 49 52 |.Y...j'.AM.1.DIR| 000000d0 b2 32 3a 41 4d b2 59 4c ad 58 4c 00 ee 08 74 27 |.2:AM.YL.XL...t'| 000000e0 8b 44 49 52 b2 32 a7 31 30 31 34 30 00 ff 08 7e |.DIR.2.10140...~| 000000f0 27 8b 58 b3 58 41 20 a7 58 b2 58 aa 31 00 10 09 |'.X.XA .X.X.1...| 00000100 88 27 8b 58 b1 58 41 20 a7 58 b2 58 ab 31 00 25 |.'.X.XA .X.X.1.%| 00000110 09 92 27 58 b2 58 41 3a 59 b2 59 41 3a 8d 31 30 |..'X.XA:Y.YA:.10| 00000120 30 31 30 00 38 09 9c 27 8b 58 41 b2 58 42 20 b0 |010.8..'.XA.XB .| 00000130 52 45 b2 31 a7 8e 00 5d 09 a6 27 8b b5 28 28 58 |RE.1...]..'..((X| 00000140 41 ab 58 29 ad 41 4d 29 b3 b1 28 58 41 ab 58 29 |A.X).AM)..(XA.X)| 00000150 ad 41 4d 20 a7 20 31 30 31 31 30 00 6f 09 b0 27 |.AM . 10110.o..'| 00000160 8b 59 b3 59 41 20 a7 20 59 b2 59 aa 31 00 81 09 |.Y.YA . Y.Y.1...| 00000170 ba 27 8b 59 b1 59 41 20 a7 20 59 b2 59 ab 31 00 |.'.Y.YA . Y.Y.1.| 00000180 9d 09 c4 27 8d 31 30 30 31 30 3a 58 41 b2 58 3a |...'.10010:XA.X:| 00000190 59 41 b2 59 3a 89 31 30 31 31 30 00 af 09 ce 27 |YA.Y:.10110....'| 000001a0 8b 59 b3 59 41 20 a7 20 59 b2 59 aa 31 00 c1 09 |.Y.YA . Y.Y.1...| 000001b0 d8 27 8b 59 b1 59 41 20 a7 20 59 b2 59 ab 31 00 |.'.Y.YA . Y.Y.1.| 000001c0 d6 09 e2 27 58 b2 58 41 3a 59 b2 59 41 3a 8d 31 |...'X.XA:Y.YA:.1| 000001d0 30 30 31 30 00 ed 09 ec 27 8b 20 59 41 b2 59 42 |0010....'. YA.YB| 000001e0 20 b0 20 52 45 b2 31 20 a7 20 8e 00 12 0a f6 27 | . RE.1 . .....'| 000001f0 8b 20 b5 28 59 41 ab 59 29 ad 41 4d 29 b3 b1 28 |. .(YA.Y).AM)..(| 00000200 59 41 ab 59 29 ad 41 4d 20 a7 20 31 30 31 39 30 |YA.Y).AM . 10190| 00000210 00 25 0a 00 28 8b 20 58 b3 58 42 20 a7 20 58 b2 |.%..(. X.XB . X.| 00000220 58 aa 31 00 38 0a 0a 28 8b 20 58 b1 58 42 20 a7 |X.1.8..(. X.XB .| 00000230 20 58 b2 58 ab 31 00 56 0a 14 28 8d 20 31 30 30 | X.X.1.V..(. 100| 00000240 31 30 3a 58 41 b2 58 3a 59 41 b2 59 3a 89 20 31 |10:XA.X:YA.Y:. 1| 00000250 30 31 39 30 00 65 0a 1e 28 8f 20 54 52 49 41 4e |0190.e..(. TRIAN| 00000260 47 4c 45 00 84 0a 28 28 52 45 b2 31 3a 58 b2 31 |GLE...((RE.1:X.1| 00000270 58 3a 59 b2 31 59 3a 58 42 b2 32 58 3a 59 42 b2 |X:Y.1Y:XB.2X:YB.| 00000280 32 59 00 a0 0a 32 28 8d 31 30 30 36 30 3a 8b 58 |2Y...2(.10060:.X| 00000290 b2 58 42 20 af 20 59 b2 59 42 20 a7 20 8e 00 c6 |.XB . Y.YB . ...| 000002a0 0a 3c 28 41 b2 58 3a 42 b2 59 3a 43 b2 41 4d 3a |.<(A.X:B.Y:C.AM:| 000002b0 44 b2 44 49 52 3a 45 b2 59 4c 3a 46 b2 58 4c 3a |D.DIR:E.YL:F.XL:| 000002c0 52 45 b2 30 00 de 0a 46 28 58 42 b2 33 58 3a 59 |RE.0...F(XB.3X:Y| 000002d0 42 b2 33 59 3a 8d 20 31 30 30 36 30 00 04 0b 50 |B.3Y:. 10060...P| 000002e0 28 58 b2 41 3a 59 b2 42 3a 41 4d b2 43 3a 44 49 |(X.A:Y.B:AM.C:DI| 000002f0 52 b2 44 3a 59 4c b2 45 3a 58 4c b2 46 3a 52 45 |R.D:YL.E:XL.F:RE| 00000300 b2 31 00 24 0b 5a 28 58 41 b2 58 3a 59 41 b2 59 |.1.$.Z(XA.X:YA.Y| 00000310 3a 8b 20 44 49 52 b2 31 20 a7 20 8d 20 31 30 31 |:. DIR.1 . . 101| 00000320 35 30 00 39 0b 64 28 8b 20 44 49 52 b2 32 20 a7 |50.9.d(. DIR.2 .| 00000330 20 8d 20 31 32 33 30 00 4f 0b 6e 28 8b 20 58 b2 | . 1230.O.n(. X.| 00000340 58 42 20 af 20 59 b2 59 42 20 a7 20 8e 00 5b 0b |XB . Y.YB . ..[.| 00000350 78 28 89 20 31 30 33 30 30 00 6b 0b 82 28 8f 20 |x(. 10300.k..(. | 00000360 48 49 2d 52 45 53 20 4f 4e 00 78 0b 8c 28 81 4c |HI-RES ON.x..(.L| 00000370 4f b2 30 a4 38 31 00 8f 0b 96 28 87 4d 43 3a 97 |O.0.81....(.MC:.| 00000380 34 39 31 35 32 aa 4c 4f 2c 4d 43 3a 82 00 9d 0b |49152.LO,MC:....| 00000390 a0 28 9e 20 34 39 31 35 32 3a 8e 00 e4 0b aa 28 |.(. 49152:.....(| 000003a0 83 20 31 36 39 2c 33 32 2c 31 34 31 2c 31 37 2c |. 169,32,141,17,| 000003b0 32 30 38 2c 31 37 33 2c 32 34 2c 32 30 38 2c 39 |208,173,24,208,9| 000003c0 2c 38 2c 31 34 31 2c 32 34 2c 32 30 38 2c 31 36 |,8,141,24,208,16| 000003d0 39 2c 30 2c 31 33 33 2c 32 35 31 2c 31 36 39 2c |9,0,133,251,169,| 000003e0 33 32 00 2b 0c b4 28 83 20 31 33 33 2c 32 35 32 |32.+..(. 133,252| 000003f0 2c 31 36 30 2c 30 2c 31 36 39 2c 30 2c 31 34 34 |,160,0,169,0,144| 00000400 2c 32 35 31 2c 32 33 30 2c 32 35 31 2c 31 39 37 |,251,230,251,197| 00000410 2c 32 35 31 2c 32 30 38 2c 32 2c 32 33 30 2c 32 |,251,208,2,230,2| 00000420 35 32 2c 31 36 39 2c 36 33 00 73 0c be 28 83 20 |52,169,63.s..(. | 00000430 31 39 37 2c 32 35 31 2c 32 30 38 2c 32 33 38 2c |197,251,208,238,| 00000440 31 39 37 2c 32 35 32 2c 32 30 38 2c 32 33 34 2c |197,252,208,234,| 00000450 31 36 39 2c 30 2c 31 33 33 2c 32 35 31 2c 31 36 |169,0,133,251,16| 00000460 39 2c 34 2c 31 33 33 2c 32 35 32 2c 31 36 30 2c |9,4,133,252,160,| 00000470 30 00 bc 0c c8 28 83 20 31 36 39 2c 31 33 2c 31 |0....(. 169,13,1| 00000480 34 35 2c 32 35 31 2c 32 33 30 2c 32 35 31 2c 31 |45,251,230,251,1| 00000490 36 39 2c 30 2c 31 39 37 2c 32 35 31 2c 32 30 38 |69,0,197,251,208| 000004a0 2c 32 2c 32 33 30 2c 32 35 32 2c 31 36 39 2c 32 |,2,230,252,169,2| 000004b0 33 31 2c 31 39 37 2c 32 35 32 00 e3 0c d2 28 83 |31,197,252....(.| 000004c0 20 32 30 38 2c 32 33 36 2c 31 36 39 2c 37 2c 31 | 208,236,169,7,1| 000004d0 39 37 2c 32 35 32 2c 32 30 38 2c 32 33 30 2c 39 |97,252,208,230,9| 000004e0 36 00 f4 0c dc 28 8f 20 48 49 2d 52 45 53 20 4f |6....(. HI-RES O| 000004f0 46 46 00 0c 0d e6 28 97 35 36 35 37 38 2c c2 28 |FF....(.56578,.(| 00000500 35 36 35 37 38 29 20 b0 20 33 00 2c 0d f0 28 97 |56578) . 3.,..(.| 00000510 35 36 35 37 36 2c 28 c2 28 35 36 35 37 36 29 20 |56576,(.(56576) | 00000520 af 20 32 35 32 29 20 b0 20 33 00 32 0d fa 28 8e |. 252) . 3.2..(.| 00000530 00 00 00 |...| 00000533