Home » CEEFAX disks » telesoftware6.adl » 04-04-88/MC\INFO

04-04-88/MC\INFO

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 » CEEFAX disks » telesoftware6.adl
Filename: 04-04-88/MC\INFO
Read OK:
File size: 067F bytes
Load address: 0000
Exec address: FFFFFFFF
File contents
MiniCom:

Programs written using a subset of 16 BASIC commands can be compiled into
machine-code. The compiler uses the same line input as BASIC, including
cursor editing, listing etc., but without the RENUMBER command. If a
renumber is required, the program should be saved then re-loaded,
whereupon the renumbering will be from line 10 in steps of 10. The 16
available commands are:

Command  Purpose                   Parameters
=======  =======                   ==========
CLG      Clear graphics window     None
CLS      Clear text window         None
CSR      Turn cursor on/off        1 or 0
COLOUR   Set text colour           Colour
DRAW     Join 2 graphics points    x,y
GCOL     Set graphic colour        Graphic mode, colour
GWIND    Set graphic window        x1,y1,x2,y2
MODE     Set screen mode           Mode no.
MOVE     Move graphics cursor      x,y
PLOT     General Purpose graphics  x,y
PRINT    Print text                String
SQUARE   Draw filled rectangle     x1,y1,x2,y2,x3,y3,x4,y4
TAB      Move text cursor          x,y
TWIND    Set text window           x1,y1,x2,y2
VDU      General puropse output    String of VDU codes
FILL     Semi-fill area of screen  x,y

All commands must be on separate lines, and unnecessary spaces can be
ignored. After entering your program, type COMPILE to assemble the
machine-code. You will be asked an address to assemble the data to. This
uses BASIC 2's offset option, and if you are unsure as to which address to
give, &1900 is normally a safe option. Save the compiled routine with:
   CSAVE"filename
Note the closing quote is not necessary. The routine can now be *RUN as a
full machine-code program.
00000000  4d 69 6e 69 43 6f 6d 3a  0d 0d 50 72 6f 67 72 61  |MiniCom:..Progra|
00000010  6d 73 20 77 72 69 74 74  65 6e 20 75 73 69 6e 67  |ms written using|
00000020  20 61 20 73 75 62 73 65  74 20 6f 66 20 31 36 20  | a subset of 16 |
00000030  42 41 53 49 43 20 63 6f  6d 6d 61 6e 64 73 20 63  |BASIC commands c|
00000040  61 6e 20 62 65 20 63 6f  6d 70 69 6c 65 64 20 69  |an be compiled i|
00000050  6e 74 6f 0d 6d 61 63 68  69 6e 65 2d 63 6f 64 65  |nto.machine-code|
00000060  2e 20 54 68 65 20 63 6f  6d 70 69 6c 65 72 20 75  |. The compiler u|
00000070  73 65 73 20 74 68 65 20  73 61 6d 65 20 6c 69 6e  |ses the same lin|
00000080  65 20 69 6e 70 75 74 20  61 73 20 42 41 53 49 43  |e input as BASIC|
00000090  2c 20 69 6e 63 6c 75 64  69 6e 67 0d 63 75 72 73  |, including.curs|
000000a0  6f 72 20 65 64 69 74 69  6e 67 2c 20 6c 69 73 74  |or editing, list|
000000b0  69 6e 67 20 65 74 63 2e  2c 20 62 75 74 20 77 69  |ing etc., but wi|
000000c0  74 68 6f 75 74 20 74 68  65 20 52 45 4e 55 4d 42  |thout the RENUMB|
000000d0  45 52 20 63 6f 6d 6d 61  6e 64 2e 20 49 66 20 61  |ER command. If a|
000000e0  0d 72 65 6e 75 6d 62 65  72 20 69 73 20 72 65 71  |.renumber is req|
000000f0  75 69 72 65 64 2c 20 74  68 65 20 70 72 6f 67 72  |uired, the progr|
00000100  61 6d 20 73 68 6f 75 6c  64 20 62 65 20 73 61 76  |am should be sav|
00000110  65 64 20 74 68 65 6e 20  72 65 2d 6c 6f 61 64 65  |ed then re-loade|
00000120  64 2c 0d 77 68 65 72 65  75 70 6f 6e 20 74 68 65  |d,.whereupon the|
00000130  20 72 65 6e 75 6d 62 65  72 69 6e 67 20 77 69 6c  | renumbering wil|
00000140  6c 20 62 65 20 66 72 6f  6d 20 6c 69 6e 65 20 31  |l be from line 1|
00000150  30 20 69 6e 20 73 74 65  70 73 20 6f 66 20 31 30  |0 in steps of 10|
00000160  2e 20 54 68 65 20 31 36  0d 61 76 61 69 6c 61 62  |. The 16.availab|
00000170  6c 65 20 63 6f 6d 6d 61  6e 64 73 20 61 72 65 3a  |le commands are:|
00000180  0d 0d 43 6f 6d 6d 61 6e  64 20 20 50 75 72 70 6f  |..Command  Purpo|
00000190  73 65 20 20 20 20 20 20  20 20 20 20 20 20 20 20  |se              |
000001a0  20 20 20 20 20 50 61 72  61 6d 65 74 65 72 73 0d  |     Parameters.|
000001b0  3d 3d 3d 3d 3d 3d 3d 20  20 3d 3d 3d 3d 3d 3d 3d  |=======  =======|
000001c0  20 20 20 20 20 20 20 20  20 20 20 20 20 20 20 20  |                |
000001d0  20 20 20 3d 3d 3d 3d 3d  3d 3d 3d 3d 3d 0d 43 4c  |   ==========.CL|
000001e0  47 20 20 20 20 20 20 43  6c 65 61 72 20 67 72 61  |G      Clear gra|
000001f0  70 68 69 63 73 20 77 69  6e 64 6f 77 20 20 20 20  |phics window    |
00000200  20 4e 6f 6e 65 0d 43 4c  53 20 20 20 20 20 20 43  | None.CLS      C|
00000210  6c 65 61 72 20 74 65 78  74 20 77 69 6e 64 6f 77  |lear text window|
00000220  20 20 20 20 20 20 20 20  20 4e 6f 6e 65 0d 43 53  |         None.CS|
00000230  52 20 20 20 20 20 20 54  75 72 6e 20 63 75 72 73  |R      Turn curs|
00000240  6f 72 20 6f 6e 2f 6f 66  66 20 20 20 20 20 20 20  |or on/off       |
00000250  20 31 20 6f 72 20 30 0d  43 4f 4c 4f 55 52 20 20  | 1 or 0.COLOUR  |
00000260  20 53 65 74 20 74 65 78  74 20 63 6f 6c 6f 75 72  | Set text colour|
00000270  20 20 20 20 20 20 20 20  20 20 20 43 6f 6c 6f 75  |           Colou|
00000280  72 0d 44 52 41 57 20 20  20 20 20 4a 6f 69 6e 20  |r.DRAW     Join |
00000290  32 20 67 72 61 70 68 69  63 73 20 70 6f 69 6e 74  |2 graphics point|
000002a0  73 20 20 20 20 78 2c 79  0d 47 43 4f 4c 20 20 20  |s    x,y.GCOL   |
000002b0  20 20 53 65 74 20 67 72  61 70 68 69 63 20 63 6f  |  Set graphic co|
000002c0  6c 6f 75 72 20 20 20 20  20 20 20 20 47 72 61 70  |lour        Grap|
000002d0  68 69 63 20 6d 6f 64 65  2c 20 63 6f 6c 6f 75 72  |hic mode, colour|
000002e0  0d 47 57 49 4e 44 20 20  20 20 53 65 74 20 67 72  |.GWIND    Set gr|
000002f0  61 70 68 69 63 20 77 69  6e 64 6f 77 20 20 20 20  |aphic window    |
00000300  20 20 20 20 78 31 2c 79  31 2c 78 32 2c 79 32 0d  |    x1,y1,x2,y2.|
00000310  4d 4f 44 45 20 20 20 20  20 53 65 74 20 73 63 72  |MODE     Set scr|
00000320  65 65 6e 20 6d 6f 64 65  20 20 20 20 20 20 20 20  |een mode        |
00000330  20 20 20 4d 6f 64 65 20  6e 6f 2e 0d 4d 4f 56 45  |   Mode no..MOVE|
00000340  20 20 20 20 20 4d 6f 76  65 20 67 72 61 70 68 69  |     Move graphi|
00000350  63 73 20 63 75 72 73 6f  72 20 20 20 20 20 20 78  |cs cursor      x|
00000360  2c 79 0d 50 4c 4f 54 20  20 20 20 20 47 65 6e 65  |,y.PLOT     Gene|
00000370  72 61 6c 20 50 75 72 70  6f 73 65 20 67 72 61 70  |ral Purpose grap|
00000380  68 69 63 73 20 20 78 2c  79 0d 50 52 49 4e 54 20  |hics  x,y.PRINT |
00000390  20 20 20 50 72 69 6e 74  20 74 65 78 74 20 20 20  |   Print text   |
000003a0  20 20 20 20 20 20 20 20  20 20 20 20 20 53 74 72  |             Str|
000003b0  69 6e 67 0d 53 51 55 41  52 45 20 20 20 44 72 61  |ing.SQUARE   Dra|
000003c0  77 20 66 69 6c 6c 65 64  20 72 65 63 74 61 6e 67  |w filled rectang|
000003d0  6c 65 20 20 20 20 20 78  31 2c 79 31 2c 78 32 2c  |le     x1,y1,x2,|
000003e0  79 32 2c 78 33 2c 79 33  2c 78 34 2c 79 34 0d 54  |y2,x3,y3,x4,y4.T|
000003f0  41 42 20 20 20 20 20 20  4d 6f 76 65 20 74 65 78  |AB      Move tex|
00000400  74 20 63 75 72 73 6f 72  20 20 20 20 20 20 20 20  |t cursor        |
00000410  20 20 78 2c 79 0d 54 57  49 4e 44 20 20 20 20 53  |  x,y.TWIND    S|
00000420  65 74 20 74 65 78 74 20  77 69 6e 64 6f 77 20 20  |et text window  |
00000430  20 20 20 20 20 20 20 20  20 78 31 2c 79 31 2c 78  |         x1,y1,x|
00000440  32 2c 79 32 0d 56 44 55  20 20 20 20 20 20 47 65  |2,y2.VDU      Ge|
00000450  6e 65 72 61 6c 20 70 75  72 6f 70 73 65 20 6f 75  |neral puropse ou|
00000460  74 70 75 74 20 20 20 20  53 74 72 69 6e 67 20 6f  |tput    String o|
00000470  66 20 56 44 55 20 63 6f  64 65 73 0d 46 49 4c 4c  |f VDU codes.FILL|
00000480  20 20 20 20 20 53 65 6d  69 2d 66 69 6c 6c 20 61  |     Semi-fill a|
00000490  72 65 61 20 6f 66 20 73  63 72 65 65 6e 20 20 78  |rea of screen  x|
000004a0  2c 79 0d 0d 41 6c 6c 20  63 6f 6d 6d 61 6e 64 73  |,y..All commands|
000004b0  20 6d 75 73 74 20 62 65  20 6f 6e 20 73 65 70 61  | must be on sepa|
000004c0  72 61 74 65 20 6c 69 6e  65 73 2c 20 61 6e 64 20  |rate lines, and |
000004d0  75 6e 6e 65 63 65 73 73  61 72 79 20 73 70 61 63  |unnecessary spac|
000004e0  65 73 20 63 61 6e 20 62  65 0d 69 67 6e 6f 72 65  |es can be.ignore|
000004f0  64 2e 20 41 66 74 65 72  20 65 6e 74 65 72 69 6e  |d. After enterin|
00000500  67 20 79 6f 75 72 20 70  72 6f 67 72 61 6d 2c 20  |g your program, |
00000510  74 79 70 65 20 43 4f 4d  50 49 4c 45 20 74 6f 20  |type COMPILE to |
00000520  61 73 73 65 6d 62 6c 65  20 74 68 65 0d 6d 61 63  |assemble the.mac|
00000530  68 69 6e 65 2d 63 6f 64  65 2e 20 59 6f 75 20 77  |hine-code. You w|
00000540  69 6c 6c 20 62 65 20 61  73 6b 65 64 20 61 6e 20  |ill be asked an |
00000550  61 64 64 72 65 73 73 20  74 6f 20 61 73 73 65 6d  |address to assem|
00000560  62 6c 65 20 74 68 65 20  64 61 74 61 20 74 6f 2e  |ble the data to.|
00000570  20 54 68 69 73 0d 75 73  65 73 20 42 41 53 49 43  | This.uses BASIC|
00000580  20 32 27 73 20 6f 66 66  73 65 74 20 6f 70 74 69  | 2's offset opti|
00000590  6f 6e 2c 20 61 6e 64 20  69 66 20 79 6f 75 20 61  |on, and if you a|
000005a0  72 65 20 75 6e 73 75 72  65 20 61 73 20 74 6f 20  |re unsure as to |
000005b0  77 68 69 63 68 20 61 64  64 72 65 73 73 20 74 6f  |which address to|
000005c0  0d 67 69 76 65 2c 20 26  31 39 30 30 20 69 73 20  |.give, &1900 is |
000005d0  6e 6f 72 6d 61 6c 6c 79  20 61 20 73 61 66 65 20  |normally a safe |
000005e0  6f 70 74 69 6f 6e 2e 20  53 61 76 65 20 74 68 65  |option. Save the|
000005f0  20 63 6f 6d 70 69 6c 65  64 20 72 6f 75 74 69 6e  | compiled routin|
00000600  65 20 77 69 74 68 3a 0d  20 20 20 43 53 41 56 45  |e with:.   CSAVE|
00000610  22 66 69 6c 65 6e 61 6d  65 0d 4e 6f 74 65 20 74  |"filename.Note t|
00000620  68 65 20 63 6c 6f 73 69  6e 67 20 71 75 6f 74 65  |he closing quote|
00000630  20 69 73 20 6e 6f 74 20  6e 65 63 65 73 73 61 72  | is not necessar|
00000640  79 2e 20 54 68 65 20 72  6f 75 74 69 6e 65 20 63  |y. The routine c|
00000650  61 6e 20 6e 6f 77 20 62  65 20 2a 52 55 4e 20 61  |an now be *RUN a|
00000660  73 20 61 0d 66 75 6c 6c  20 6d 61 63 68 69 6e 65  |s a.full machine|
00000670  2d 63 6f 64 65 20 70 72  6f 67 72 61 6d 2e 0d     |-code program..|
0000067f
04-04-88/MC\INFO.m0
04-04-88/MC\INFO.m1
04-04-88/MC\INFO.m2
04-04-88/MC\INFO.m4
04-04-88/MC\INFO.m5