Home » Archimedes archive » Archimedes World » AW-1995-04-Disc1.adf » Disk1Apr95 » !AWApr95/Goodies/Draw/!DrawBasic/Library/Logo/Example_3

!AWApr95/Goodies/Draw/!DrawBasic/Library/Logo/Example_3

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 » Archimedes archive » Archimedes World » AW-1995-04-Disc1.adf » Disk1Apr95
Filename: !AWApr95/Goodies/Draw/!DrawBasic/Library/Logo/Example_3
Read OK:
File size: 00BF bytes
Load address: 0000
Exec address: 0000
File contents
REM Draws square of side 1 inch
�PathBegin(path)
 �Turtle(2,2,0)
 �LogoSquare(1)
 �PathEnd
�Quit
END

DEF �LogoSquare(length)
LOCAL i
 FOR i=1 TO 4
 �Left(90)
 �Forward(length)
  NEXT
ENDPROC
00000000  52 45 4d 20 44 72 61 77  73 20 73 71 75 61 72 65  |REM Draws square|
00000010  20 6f 66 20 73 69 64 65  20 31 20 69 6e 63 68 0a  | of side 1 inch.|
00000020  a0 50 61 74 68 42 65 67  69 6e 28 70 61 74 68 29  |.PathBegin(path)|
00000030  0a 20 a0 54 75 72 74 6c  65 28 32 2c 32 2c 30 29  |. .Turtle(2,2,0)|
00000040  0a 20 a0 4c 6f 67 6f 53  71 75 61 72 65 28 31 29  |. .LogoSquare(1)|
00000050  0a 20 a0 50 61 74 68 45  6e 64 0a a0 51 75 69 74  |. .PathEnd..Quit|
00000060  0a 45 4e 44 0a 0a 44 45  46 20 a0 4c 6f 67 6f 53  |.END..DEF .LogoS|
00000070  71 75 61 72 65 28 6c 65  6e 67 74 68 29 0a 4c 4f  |quare(length).LO|
00000080  43 41 4c 20 69 0a 20 46  4f 52 20 69 3d 31 20 54  |CAL i. FOR i=1 T|
00000090  4f 20 34 0a 20 a0 4c 65  66 74 28 39 30 29 0a 20  |O 4. .Left(90). |
000000a0  a0 46 6f 72 77 61 72 64  28 6c 65 6e 67 74 68 29  |.Forward(length)|
000000b0  0a 20 20 4e 45 58 54 0a  45 4e 44 50 52 4f 43     |.  NEXT.ENDPROC|
000000bf