Home » Personal collection » Acorn tapes » Electron_User » Electron_User_tape20a_acorn_eu_1991_march.wav » Colours

Colours

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 » Acorn tapes » Electron_User » Electron_User_tape20a_acorn_eu_1991_march.wav
Filename: Colours
Read OK:
File size: 05A5 bytes
Load address: FFFF1A00
Exec address: FFFF8023
Duplicates

There are 2 duplicate copies of this file in the archive:

File contents
   81txt_col=0:grd_col=0
  131COLOUR3:PROCsing_hgt("Grid Colour: "+FNcol(grd_col),11,8):PROCsing_hgt("Text Colour: "+FNcol(txt_col),11,11)
  281fk2$(b,a)=CHR$1+CHR$27+CHR$1+CHR$114+CHR$1+CHR$txt_col+fk2$(b,a)+CHR$1+CHR$27+CHR$1+CHR$114+CHR$1+CHR$grd_col
  282fk2$(c,a)=CHR$1+CHR$27+CHR$1+CHR$114+CHR$1+CHR$txt_col+fk2$(c,a)+CHR$1+CHR$27+CHR$1+CHR$114+CHR$1+CHR$grd_col
  341grid_col$=CHR$1+CHR$27+CHR$1+CHR$114+CHR$1+CHR$grd_col
  350VDU2:PRINTsup_on$;elite$;cond$;lne_spc$;grid_col$
  791IFchoice$="7" PROCcolours:PROCmenu
  850ypos=7:RESTORE2480
 2330DEFPROCcolours
 2340CLS:PROCtitle:PROCoscli("FX11,0")
 2350REPEAT
 2360PRINTTAB(10,6);"Grid Colour (0-6):"SPC15
 2370get$=GET$:IFASCget$<48 OR ASCget$>54 PROCsound ELSEPRINTTAB(29,6);VALget$:grd_col=VALget$
 2380UNTILASCget$>=48 AND ASCget$<=54
 2390REPEAT
 2400PRINTTAB(10,9);"Text Colour (0-6):"SPC15
 2410get$=GET$:IFASCget$<48 OR ASCget$>54 PROCsound ELSEPRINTTAB(29,9);VALget$:txt_col=VALget$
 2420UNTILASCget$>=48 AND ASCget$<=54
 2430PROCsing_hgt("Are these correct? Y/N",-1,29)
 2440get$=FNget_yn:IFget$="Y"CLS ELSEIFget$="N"VDU28,0,31,39,3:CLS:VDU26:GOTO2350
 2450ENDPROC
 2460DEFFNcol(c)
 2470IFc=0 ="BLACK"ELSEIFc=1 ="RED"ELSEIFc=2 ="BLUE"ELSEIFc=3 ="PURPLE"ELSEIFc=4 ="YELLOW"ELSEIFc=5 ="ORANGE"ELSEIFc=6 ="GREEN" ELSE=""
 2480DATA 1,Enter key details,2,Print key strip,3,Load key strip,4,Save key strip,5,Exit program,6,Clear memory,7,Change print colours,*,Star Command,END,END
00000000  20 20 20 38 31 74 78 74  5f 63 6f 6c 3d 30 3a 67  |   81txt_col=0:g|
00000010  72 64 5f 63 6f 6c 3d 30  0d 20 20 31 33 31 43 4f  |rd_col=0.  131CO|
00000020  4c 4f 55 52 33 3a 50 52  4f 43 73 69 6e 67 5f 68  |LOUR3:PROCsing_h|
00000030  67 74 28 22 47 72 69 64  20 43 6f 6c 6f 75 72 3a  |gt("Grid Colour:|
00000040  20 22 2b 46 4e 63 6f 6c  28 67 72 64 5f 63 6f 6c  | "+FNcol(grd_col|
00000050  29 2c 31 31 2c 38 29 3a  50 52 4f 43 73 69 6e 67  |),11,8):PROCsing|
00000060  5f 68 67 74 28 22 54 65  78 74 20 43 6f 6c 6f 75  |_hgt("Text Colou|
00000070  72 3a 20 22 2b 46 4e 63  6f 6c 28 74 78 74 5f 63  |r: "+FNcol(txt_c|
00000080  6f 6c 29 2c 31 31 2c 31  31 29 0d 20 20 32 38 31  |ol),11,11).  281|
00000090  66 6b 32 24 28 62 2c 61  29 3d 43 48 52 24 31 2b  |fk2$(b,a)=CHR$1+|
000000a0  43 48 52 24 32 37 2b 43  48 52 24 31 2b 43 48 52  |CHR$27+CHR$1+CHR|
000000b0  24 31 31 34 2b 43 48 52  24 31 2b 43 48 52 24 74  |$114+CHR$1+CHR$t|
000000c0  78 74 5f 63 6f 6c 2b 66  6b 32 24 28 62 2c 61 29  |xt_col+fk2$(b,a)|
000000d0  2b 43 48 52 24 31 2b 43  48 52 24 32 37 2b 43 48  |+CHR$1+CHR$27+CH|
000000e0  52 24 31 2b 43 48 52 24  31 31 34 2b 43 48 52 24  |R$1+CHR$114+CHR$|
000000f0  31 2b 43 48 52 24 67 72  64 5f 63 6f 6c 0d 20 20  |1+CHR$grd_col.  |
00000100  32 38 32 66 6b 32 24 28  63 2c 61 29 3d 43 48 52  |282fk2$(c,a)=CHR|
00000110  24 31 2b 43 48 52 24 32  37 2b 43 48 52 24 31 2b  |$1+CHR$27+CHR$1+|
00000120  43 48 52 24 31 31 34 2b  43 48 52 24 31 2b 43 48  |CHR$114+CHR$1+CH|
00000130  52 24 74 78 74 5f 63 6f  6c 2b 66 6b 32 24 28 63  |R$txt_col+fk2$(c|
00000140  2c 61 29 2b 43 48 52 24  31 2b 43 48 52 24 32 37  |,a)+CHR$1+CHR$27|
00000150  2b 43 48 52 24 31 2b 43  48 52 24 31 31 34 2b 43  |+CHR$1+CHR$114+C|
00000160  48 52 24 31 2b 43 48 52  24 67 72 64 5f 63 6f 6c  |HR$1+CHR$grd_col|
00000170  0d 20 20 33 34 31 67 72  69 64 5f 63 6f 6c 24 3d  |.  341grid_col$=|
00000180  43 48 52 24 31 2b 43 48  52 24 32 37 2b 43 48 52  |CHR$1+CHR$27+CHR|
00000190  24 31 2b 43 48 52 24 31  31 34 2b 43 48 52 24 31  |$1+CHR$114+CHR$1|
000001a0  2b 43 48 52 24 67 72 64  5f 63 6f 6c 0d 20 20 33  |+CHR$grd_col.  3|
000001b0  35 30 56 44 55 32 3a 50  52 49 4e 54 73 75 70 5f  |50VDU2:PRINTsup_|
000001c0  6f 6e 24 3b 65 6c 69 74  65 24 3b 63 6f 6e 64 24  |on$;elite$;cond$|
000001d0  3b 6c 6e 65 5f 73 70 63  24 3b 67 72 69 64 5f 63  |;lne_spc$;grid_c|
000001e0  6f 6c 24 0d 20 20 37 39  31 49 46 63 68 6f 69 63  |ol$.  791IFchoic|
000001f0  65 24 3d 22 37 22 20 50  52 4f 43 63 6f 6c 6f 75  |e$="7" PROCcolou|
00000200  72 73 3a 50 52 4f 43 6d  65 6e 75 0d 20 20 38 35  |rs:PROCmenu.  85|
00000210  30 79 70 6f 73 3d 37 3a  52 45 53 54 4f 52 45 32  |0ypos=7:RESTORE2|
00000220  34 38 30 0d 20 32 33 33  30 44 45 46 50 52 4f 43  |480. 2330DEFPROC|
00000230  63 6f 6c 6f 75 72 73 0d  20 32 33 34 30 43 4c 53  |colours. 2340CLS|
00000240  3a 50 52 4f 43 74 69 74  6c 65 3a 50 52 4f 43 6f  |:PROCtitle:PROCo|
00000250  73 63 6c 69 28 22 46 58  31 31 2c 30 22 29 0d 20  |scli("FX11,0"). |
00000260  32 33 35 30 52 45 50 45  41 54 0d 20 32 33 36 30  |2350REPEAT. 2360|
00000270  50 52 49 4e 54 54 41 42  28 31 30 2c 36 29 3b 22  |PRINTTAB(10,6);"|
00000280  47 72 69 64 20 43 6f 6c  6f 75 72 20 28 30 2d 36  |Grid Colour (0-6|
00000290  29 3a 22 53 50 43 31 35  0d 20 32 33 37 30 67 65  |):"SPC15. 2370ge|
000002a0  74 24 3d 47 45 54 24 3a  49 46 41 53 43 67 65 74  |t$=GET$:IFASCget|
000002b0  24 3c 34 38 20 4f 52 20  41 53 43 67 65 74 24 3e  |$<48 OR ASCget$>|
000002c0  35 34 20 50 52 4f 43 73  6f 75 6e 64 20 45 4c 53  |54 PROCsound ELS|
000002d0  45 50 52 49 4e 54 54 41  42 28 32 39 2c 36 29 3b  |EPRINTTAB(29,6);|
000002e0  56 41 4c 67 65 74 24 3a  67 72 64 5f 63 6f 6c 3d  |VALget$:grd_col=|
000002f0  56 41 4c 67 65 74 24 0d  20 32 33 38 30 55 4e 54  |VALget$. 2380UNT|
00000300  49 4c 41 53 43 67 65 74  24 3e 3d 34 38 20 41 4e  |ILASCget$>=48 AN|
00000310  44 20 41 53 43 67 65 74  24 3c 3d 35 34 0d 20 32  |D ASCget$<=54. 2|
00000320  33 39 30 52 45 50 45 41  54 0d 20 32 34 30 30 50  |390REPEAT. 2400P|
00000330  52 49 4e 54 54 41 42 28  31 30 2c 39 29 3b 22 54  |RINTTAB(10,9);"T|
00000340  65 78 74 20 43 6f 6c 6f  75 72 20 28 30 2d 36 29  |ext Colour (0-6)|
00000350  3a 22 53 50 43 31 35 0d  20 32 34 31 30 67 65 74  |:"SPC15. 2410get|
00000360  24 3d 47 45 54 24 3a 49  46 41 53 43 67 65 74 24  |$=GET$:IFASCget$|
00000370  3c 34 38 20 4f 52 20 41  53 43 67 65 74 24 3e 35  |<48 OR ASCget$>5|
00000380  34 20 50 52 4f 43 73 6f  75 6e 64 20 45 4c 53 45  |4 PROCsound ELSE|
00000390  50 52 49 4e 54 54 41 42  28 32 39 2c 39 29 3b 56  |PRINTTAB(29,9);V|
000003a0  41 4c 67 65 74 24 3a 74  78 74 5f 63 6f 6c 3d 56  |ALget$:txt_col=V|
000003b0  41 4c 67 65 74 24 0d 20  32 34 32 30 55 4e 54 49  |ALget$. 2420UNTI|
000003c0  4c 41 53 43 67 65 74 24  3e 3d 34 38 20 41 4e 44  |LASCget$>=48 AND|
000003d0  20 41 53 43 67 65 74 24  3c 3d 35 34 0d 20 32 34  | ASCget$<=54. 24|
000003e0  33 30 50 52 4f 43 73 69  6e 67 5f 68 67 74 28 22  |30PROCsing_hgt("|
000003f0  41 72 65 20 74 68 65 73  65 20 63 6f 72 72 65 63  |Are these correc|
00000400  74 3f 20 59 2f 4e 22 2c  2d 31 2c 32 39 29 0d 20  |t? Y/N",-1,29). |
00000410  32 34 34 30 67 65 74 24  3d 46 4e 67 65 74 5f 79  |2440get$=FNget_y|
00000420  6e 3a 49 46 67 65 74 24  3d 22 59 22 43 4c 53 20  |n:IFget$="Y"CLS |
00000430  45 4c 53 45 49 46 67 65  74 24 3d 22 4e 22 56 44  |ELSEIFget$="N"VD|
00000440  55 32 38 2c 30 2c 33 31  2c 33 39 2c 33 3a 43 4c  |U28,0,31,39,3:CL|
00000450  53 3a 56 44 55 32 36 3a  47 4f 54 4f 32 33 35 30  |S:VDU26:GOTO2350|
00000460  0d 20 32 34 35 30 45 4e  44 50 52 4f 43 0d 20 32  |. 2450ENDPROC. 2|
00000470  34 36 30 44 45 46 46 4e  63 6f 6c 28 63 29 0d 20  |460DEFFNcol(c). |
00000480  32 34 37 30 49 46 63 3d  30 20 3d 22 42 4c 41 43  |2470IFc=0 ="BLAC|
00000490  4b 22 45 4c 53 45 49 46  63 3d 31 20 3d 22 52 45  |K"ELSEIFc=1 ="RE|
000004a0  44 22 45 4c 53 45 49 46  63 3d 32 20 3d 22 42 4c  |D"ELSEIFc=2 ="BL|
000004b0  55 45 22 45 4c 53 45 49  46 63 3d 33 20 3d 22 50  |UE"ELSEIFc=3 ="P|
000004c0  55 52 50 4c 45 22 45 4c  53 45 49 46 63 3d 34 20  |URPLE"ELSEIFc=4 |
000004d0  3d 22 59 45 4c 4c 4f 57  22 45 4c 53 45 49 46 63  |="YELLOW"ELSEIFc|
000004e0  3d 35 20 3d 22 4f 52 41  4e 47 45 22 45 4c 53 45  |=5 ="ORANGE"ELSE|
000004f0  49 46 63 3d 36 20 3d 22  47 52 45 45 4e 22 20 45  |IFc=6 ="GREEN" E|
00000500  4c 53 45 3d 22 22 0d 20  32 34 38 30 44 41 54 41  |LSE="". 2480DATA|
00000510  20 31 2c 45 6e 74 65 72  20 6b 65 79 20 64 65 74  | 1,Enter key det|
00000520  61 69 6c 73 2c 32 2c 50  72 69 6e 74 20 6b 65 79  |ails,2,Print key|
00000530  20 73 74 72 69 70 2c 33  2c 4c 6f 61 64 20 6b 65  | strip,3,Load ke|
00000540  79 20 73 74 72 69 70 2c  34 2c 53 61 76 65 20 6b  |y strip,4,Save k|
00000550  65 79 20 73 74 72 69 70  2c 35 2c 45 78 69 74 20  |ey strip,5,Exit |
00000560  70 72 6f 67 72 61 6d 2c  36 2c 43 6c 65 61 72 20  |program,6,Clear |
00000570  6d 65 6d 6f 72 79 2c 37  2c 43 68 61 6e 67 65 20  |memory,7,Change |
00000580  70 72 69 6e 74 20 63 6f  6c 6f 75 72 73 2c 2a 2c  |print colours,*,|
00000590  53 74 61 72 20 43 6f 6d  6d 61 6e 64 2c 45 4e 44  |Star Command,END|
000005a0  2c 45 4e 44 0d                                    |,END.|
000005a5
Colours.m0
Colours.m1
Colours.m2
Colours.m4
Colours.m5