Home » Personal collection » Acorn ADFS disks » Electron_User_Group » EUG_25.ADF » G/MODS1

G/MODS1

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 ADFS disks » Electron_User_Group » EUG_25.ADF
Filename: G/MODS1
Read OK:
File size: 0AEF bytes
Load address: 4D206576
Exec address: 3153444F
File contents
																																																																																																															
MODIFICATIONS to GAMES for MASTER USERS
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
By Richard Dimond

Having recently obtained a MASTER, I have realised that, although my two
games work well, they do not appear as they should.  This is because the
MASTER has extra characters allocated to CHR$ numbers 128 to 255.  In
order to define characters, it is then necessary to use VDU23 and you
cannot simply load the values into page &C as you can on the Electron.

I have now made modifications to my games programs which enable you to
improve the programs so that they work correctly.

BELEAGUERED CASTLE
~~~~~~~~~~~~~~~~~~
In this game, I tried to show the cards more accurately by inverting some 
of the characters as on the cards.  This is done by a short M/code routine
at &900 which is CALLed from PROCinv in the programs.  This is assembled
in CASTLE1.  The modification is quite simple and is easily typed in.
                       
Add line -    785 LDA#23:JSR&FFEE:LDA#255:JSR&FFEE

Alter line 790 to -
              790 LDX#7:.lp3 LDA&61,X:JSR&FFEE:DEX:BPLlp3:RTS

This involves DELETING :LDY#0 and :INY:CPY#8 and replacing STA&CF0,Y with
JSR&FFEE and BNElp3 with BPLlp3

You may find it simpler to type these lines to the screen after LOADing
the program and then COPYing them into the program.

Then re-SAVE"CASTLE1"

You should then get the correct inverted characters.

MR. MINER
~~~~~~~~~
In this game, the opening screen was spoilt as the routine for the double
sized characters did not work.  I have rewritten this routine and put this
on the disc as 'DH'.  This is arranged with line numbers which fit in with
the program 'MINsrc2' and replace the old lines.

To do this, *SPOOL this file with another filename.  Then LOAD"MINsrc2"
and *EXEC the new file into this.  

'MINsrc2' must then be SAVEd before RUNning it to assemble the new code. 
This is necessary as the program relocates to &1D00.  

After RUNning this,  CHAIN"MINERldr".   This will then create the new game
file and typing *MINER should now show the corrected opening screen.

OTHER GAMES
~~~~~~~~~~~
If you have any other games which load the character data to &C, here is a
simple way of converting the data to define the characters.

Add the PROCedure 'CHPROC', included on the disc, to the end of your
program by using OSCLI"LOAD CHPROC "+STR$~(TOP-2).  Then add PROCch to a
line after the data is LOADed.  I have used this with the UNO program that
has been published in the magazine.  The characters are numbered 128 to
159 so that the PROC needs amending and then added to UNOLOAD.

**************************************************************************

00000000  09 09 09 09 09 09 09 09  09 09 09 09 09 09 09 09  |................|
*
00000060  09 09 09 09 09 09 09 09  09 09 09 09 09 09 09 0d  |................|
00000070  4d 4f 44 49 46 49 43 41  54 49 4f 4e 53 20 74 6f  |MODIFICATIONS to|
00000080  20 47 41 4d 45 53 20 66  6f 72 20 4d 41 53 54 45  | GAMES for MASTE|
00000090  52 20 55 53 45 52 53 0d  7e 7e 7e 7e 7e 7e 7e 7e  |R USERS.~~~~~~~~|
000000a0  7e 7e 7e 7e 7e 7e 7e 7e  7e 7e 7e 7e 7e 7e 7e 7e  |~~~~~~~~~~~~~~~~|
000000b0  7e 7e 7e 7e 7e 7e 7e 7e  7e 7e 7e 7e 7e 7e 7e 0d  |~~~~~~~~~~~~~~~.|
000000c0  42 79 20 52 69 63 68 61  72 64 20 44 69 6d 6f 6e  |By Richard Dimon|
000000d0  64 0d 0d 48 61 76 69 6e  67 20 72 65 63 65 6e 74  |d..Having recent|
000000e0  6c 79 20 6f 62 74 61 69  6e 65 64 20 61 20 4d 41  |ly obtained a MA|
000000f0  53 54 45 52 2c 1a 20 49  1a 20 68 61 76 65 20 72  |STER,. I. have r|
00000100  65 61 6c 69 73 65 64 20  74 68 61 74 2c 20 61 6c  |ealised that, al|
00000110  74 68 6f 75 67 68 20 6d  79 20 74 77 6f 0d 67 61  |though my two.ga|
00000120  6d 65 73 20 77 6f 72 6b  20 77 65 6c 6c 2c 20 74  |mes work well, t|
00000130  68 65 79 20 64 6f 20 6e  6f 74 20 61 70 70 65 61  |hey do not appea|
00000140  72 1a 20 61 73 1a 20 74  68 65 79 20 73 68 6f 75  |r. as. they shou|
00000150  6c 64 2e 20 20 54 68 69  73 20 69 73 20 62 65 63  |ld.  This is bec|
00000160  61 75 73 65 20 74 68 65  0d 4d 41 53 54 45 52 1a  |ause the.MASTER.|
00000170  20 68 61 73 1a 20 65 78  74 72 61 20 63 68 61 72  | has. extra char|
00000180  61 63 74 65 72 73 20 61  6c 6c 6f 63 61 74 65 64  |acters allocated|
00000190  20 74 6f 20 43 48 52 24  20 6e 75 6d 62 65 72 73  | to CHR$ numbers|
000001a0  20 31 32 38 1a 20 74 6f  1a 20 32 35 35 2e 1a 20  | 128. to. 255.. |
000001b0  20 49 6e 0d 6f 72 64 65  72 20 74 6f 20 64 65 66  | In.order to def|
000001c0  69 6e 65 1a 20 63 68 61  72 61 63 74 65 72 73 2c  |ine. characters,|
000001d0  1a 20 69 74 1a 20 69 73  1a 20 74 68 65 6e 1a 20  |. it. is. then. |
000001e0  6e 65 63 65 73 73 61 72  79 20 74 6f 20 75 73 65  |necessary to use|
000001f0  20 56 44 55 32 33 20 61  6e 64 20 79 6f 75 0d 63  | VDU23 and you.c|
00000200  61 6e 6e 6f 74 20 73 69  6d 70 6c 79 20 6c 6f 61  |annot simply loa|
00000210  64 20 74 68 65 20 76 61  6c 75 65 73 20 69 6e 74  |d the values int|
00000220  6f 20 70 61 67 65 20 26  43 20 61 73 20 79 6f 75  |o page &C as you|
00000230  20 63 61 6e 20 6f 6e 20  74 68 65 20 45 6c 65 63  | can on the Elec|
00000240  74 72 6f 6e 2e 0d 0d 49  20 68 61 76 65 20 6e 6f  |tron...I have no|
00000250  77 20 6d 61 64 65 20 6d  6f 64 69 66 69 63 61 74  |w made modificat|
00000260  69 6f 6e 73 1a 20 74 6f  1a 20 6d 79 1a 20 67 61  |ions. to. my. ga|
00000270  6d 65 73 1a 20 70 72 6f  67 72 61 6d 73 20 77 68  |mes. programs wh|
00000280  69 63 68 20 65 6e 61 62  6c 65 20 79 6f 75 20 74  |ich enable you t|
00000290  6f 0d 69 6d 70 72 6f 76  65 20 74 68 65 20 70 72  |o.improve the pr|
000002a0  6f 67 72 61 6d 73 20 73  6f 20 74 68 61 74 20 74  |ograms so that t|
000002b0  68 65 79 20 77 6f 72 6b  20 63 6f 72 72 65 63 74  |hey work correct|
000002c0  6c 79 2e 0d 0d 42 45 4c  45 41 47 55 45 52 45 44  |ly...BELEAGUERED|
000002d0  20 43 41 53 54 4c 45 0d  7e 7e 7e 7e 7e 7e 7e 7e  | CASTLE.~~~~~~~~|
000002e0  7e 7e 7e 7e 7e 7e 7e 7e  7e 7e 0d 49 6e 20 74 68  |~~~~~~~~~~.In th|
000002f0  69 73 20 67 61 6d 65 2c  20 49 20 74 72 69 65 64  |is game, I tried|
00000300  1a 20 74 6f 20 73 68 6f  77 20 74 68 65 20 63 61  |. to show the ca|
00000310  72 64 73 20 6d 6f 72 65  20 61 63 63 75 72 61 74  |rds more accurat|
00000320  65 6c 79 20 62 79 20 69  6e 76 65 72 74 69 6e 67  |ely by inverting|
00000330  20 73 6f 6d 65 20 0d 6f  66 20 74 68 65 20 63 68  | some .of the ch|
00000340  61 72 61 63 74 65 72 73  20 61 73 20 6f 6e 20 74  |aracters as on t|
00000350  68 65 20 63 61 72 64 73  2e 20 20 54 68 69 73 20  |he cards.  This |
00000360  69 73 20 64 6f 6e 65 20  62 79 20 61 20 73 68 6f  |is done by a sho|
00000370  72 74 20 4d 2f 63 6f 64  65 20 72 6f 75 74 69 6e  |rt M/code routin|
00000380  65 0d 61 74 20 26 39 30  30 20 77 68 69 63 68 20  |e.at &900 which |
00000390  69 73 20 43 41 4c 4c 65  64 1a 20 66 72 6f 6d 1a  |is CALLed. from.|
000003a0  20 50 52 4f 43 69 6e 76  20 69 6e 20 74 68 65 20  | PROCinv in the |
000003b0  70 72 6f 67 72 61 6d 73  2e 20 20 54 68 69 73 20  |programs.  This |
000003c0  69 73 20 61 73 73 65 6d  62 6c 65 64 0d 69 6e 20  |is assembled.in |
000003d0  43 41 53 54 4c 45 31 2e  20 20 54 68 65 20 6d 6f  |CASTLE1.  The mo|
000003e0  64 69 66 69 63 61 74 69  6f 6e 20 69 73 20 71 75  |dification is qu|
000003f0  69 74 65 20 73 69 6d 70  6c 65 20 61 6e 64 20 69  |ite simple and i|
00000400  73 20 65 61 73 69 6c 79  20 74 79 70 65 64 20 69  |s easily typed i|
00000410  6e 2e 0d 20 20 20 20 20  20 20 20 20 20 20 20 20  |n..             |
00000420  20 20 20 20 20 20 20 20  20 20 0d 41 64 64 20 6c  |          .Add l|
00000430  69 6e 65 20 2d 20 20 20  20 37 38 35 20 4c 44 41  |ine -    785 LDA|
00000440  23 32 33 3a 4a 53 52 26  46 46 45 45 3a 4c 44 41  |#23:JSR&FFEE:LDA|
00000450  23 32 35 35 3a 4a 53 52  26 46 46 45 45 0d 0d 41  |#255:JSR&FFEE..A|
00000460  6c 74 65 72 20 6c 69 6e  65 20 37 39 30 20 74 6f  |lter line 790 to|
00000470  20 2d 0d 20 20 20 20 20  20 20 20 20 20 20 20 20  | -.             |
00000480  20 37 39 30 20 4c 44 58  23 37 3a 2e 6c 70 33 20  | 790 LDX#7:.lp3 |
00000490  4c 44 41 26 36 31 2c 58  3a 4a 53 52 26 46 46 45  |LDA&61,X:JSR&FFE|
000004a0  45 3a 44 45 58 3a 42 50  4c 6c 70 33 3a 52 54 53  |E:DEX:BPLlp3:RTS|
000004b0  0d 0d 54 68 69 73 1a 20  69 6e 76 6f 6c 76 65 73  |..This. involves|
000004c0  20 44 45 4c 45 54 49 4e  47 20 3a 4c 44 59 23 30  | DELETING :LDY#0|
000004d0  20 61 6e 64 20 3a 49 4e  59 3a 43 50 59 23 38 20  | and :INY:CPY#8 |
000004e0  61 6e 64 20 72 65 70 6c  61 63 69 6e 67 20 53 54  |and replacing ST|
000004f0  41 26 43 46 30 2c 59 20  77 69 74 68 0d 4a 53 52  |A&CF0,Y with.JSR|
00000500  26 46 46 45 45 20 61 6e  64 20 42 4e 45 6c 70 33  |&FFEE and BNElp3|
00000510  20 77 69 74 68 20 42 50  4c 6c 70 33 0d 0d 59 6f  | with BPLlp3..Yo|
00000520  75 20 6d 61 79 1a 20 66  69 6e 64 1a 20 69 74 1a  |u may. find. it.|
00000530  20 73 69 6d 70 6c 65 72  20 74 6f 20 74 79 70 65  | simpler to type|
00000540  20 74 68 65 73 65 20 6c  69 6e 65 73 20 74 6f 20  | these lines to |
00000550  74 68 65 20 73 63 72 65  65 6e 20 61 66 74 65 72  |the screen after|
00000560  20 4c 4f 41 44 69 6e 67  0d 74 68 65 20 70 72 6f  | LOADing.the pro|
00000570  67 72 61 6d 20 61 6e 64  20 74 68 65 6e 20 43 4f  |gram and then CO|
00000580  50 59 69 6e 67 20 74 68  65 6d 20 69 6e 74 6f 20  |PYing them into |
00000590  74 68 65 20 70 72 6f 67  72 61 6d 2e 0d 0d 54 68  |the program...Th|
000005a0  65 6e 20 72 65 2d 53 41  56 45 22 43 41 53 54 4c  |en re-SAVE"CASTL|
000005b0  45 31 22 0d 0d 59 6f 75  20 73 68 6f 75 6c 64 20  |E1"..You should |
000005c0  74 68 65 6e 20 67 65 74  20 74 68 65 20 63 6f 72  |then get the cor|
000005d0  72 65 63 74 20 69 6e 76  65 72 74 65 64 20 63 68  |rect inverted ch|
000005e0  61 72 61 63 74 65 72 73  2e 0d 0d 4d 52 2e 20 4d  |aracters...MR. M|
000005f0  49 4e 45 52 0d 7e 7e 7e  7e 7e 7e 7e 7e 7e 0d 49  |INER.~~~~~~~~~.I|
00000600  6e 20 74 68 69 73 20 67  61 6d 65 2c 20 74 68 65  |n this game, the|
00000610  20 6f 70 65 6e 69 6e 67  20 73 63 72 65 65 6e 20  | opening screen |
00000620  77 61 73 20 73 70 6f 69  6c 74 20 61 73 20 74 68  |was spoilt as th|
00000630  65 20 72 6f 75 74 69 6e  65 1a 20 66 6f 72 20 74  |e routine. for t|
00000640  68 65 20 64 6f 75 62 6c  65 0d 73 69 7a 65 64 20  |he double.sized |
00000650  63 68 61 72 61 63 74 65  72 73 20 64 69 64 20 6e  |characters did n|
00000660  6f 74 20 77 6f 72 6b 2e  20 20 49 20 68 61 76 65  |ot work.  I have|
00000670  20 72 65 77 72 69 74 74  65 6e 20 74 68 69 73 20  | rewritten this |
00000680  72 6f 75 74 69 6e 65 20  61 6e 64 20 70 75 74 20  |routine and put |
00000690  74 68 69 73 0d 6f 6e 20  74 68 65 20 64 69 73 63  |this.on the disc|
000006a0  20 61 73 20 27 44 48 27  2e 20 20 54 68 69 73 20  | as 'DH'.  This |
000006b0  69 73 20 61 72 72 61 6e  67 65 64 20 77 69 74 68  |is arranged with|
000006c0  20 6c 69 6e 65 20 6e 75  6d 62 65 72 73 20 77 68  | line numbers wh|
000006d0  69 63 68 20 66 69 74 20  69 6e 20 77 69 74 68 0d  |ich fit in with.|
000006e0  74 68 65 20 70 72 6f 67  72 61 6d 20 27 4d 49 4e  |the program 'MIN|
000006f0  73 72 63 32 27 20 61 6e  64 20 72 65 70 6c 61 63  |src2' and replac|
00000700  65 20 74 68 65 20 6f 6c  64 20 6c 69 6e 65 73 2e  |e the old lines.|
00000710  0d 0d 54 6f 1a 20 64 6f  1a 20 74 68 69 73 2c 1a  |..To. do. this,.|
00000720  20 2a 53 50 4f 4f 4c 20  74 68 69 73 20 66 69 6c  | *SPOOL this fil|
00000730  65 20 77 69 74 68 20 61  6e 6f 74 68 65 72 20 66  |e with another f|
00000740  69 6c 65 6e 61 6d 65 2e  20 20 54 68 65 6e 20 4c  |ilename.  Then L|
00000750  4f 41 44 22 4d 49 4e 73  72 63 32 22 0d 61 6e 64  |OAD"MINsrc2".and|
00000760  20 2a 45 58 45 43 20 74  68 65 20 6e 65 77 20 66  | *EXEC the new f|
00000770  69 6c 65 20 69 6e 74 6f  20 74 68 69 73 2e 20 20  |ile into this.  |
00000780  0d 0d 27 4d 49 4e 73 72  63 32 27 20 6d 75 73 74  |..'MINsrc2' must|
00000790  20 74 68 65 6e 20 62 65  20 53 41 56 45 64 1a 20  | then be SAVEd. |
000007a0  62 65 66 6f 72 65 1a 20  52 55 4e 6e 69 6e 67 20  |before. RUNning |
000007b0  69 74 20 74 6f 20 61 73  73 65 6d 62 6c 65 20 74  |it to assemble t|
000007c0  68 65 20 6e 65 77 20 63  6f 64 65 2e 20 0d 54 68  |he new code. .Th|
000007d0  69 73 20 69 73 20 6e 65  63 65 73 73 61 72 79 20  |is is necessary |
000007e0  61 73 20 74 68 65 20 70  72 6f 67 72 61 6d 20 72  |as the program r|
000007f0  65 6c 6f 63 61 74 65 73  20 74 6f 20 26 31 44 30  |elocates to &1D0|
00000800  30 2e 20 20 0d 0d 41 66  74 65 72 20 52 55 4e 6e  |0.  ..After RUNn|
00000810  69 6e 67 20 74 68 69 73  2c 20 20 43 48 41 49 4e  |ing this,  CHAIN|
00000820  22 4d 49 4e 45 52 6c 64  72 22 2e 20 20 20 54 68  |"MINERldr".   Th|
00000830  69 73 20 77 69 6c 6c 20  74 68 65 6e 20 63 72 65  |is will then cre|
00000840  61 74 65 20 74 68 65 20  6e 65 77 20 67 61 6d 65  |ate the new game|
00000850  0d 66 69 6c 65 20 61 6e  64 20 74 79 70 69 6e 67  |.file and typing|
00000860  20 2a 4d 49 4e 45 52 20  73 68 6f 75 6c 64 20 6e  | *MINER should n|
00000870  6f 77 20 73 68 6f 77 20  74 68 65 20 63 6f 72 72  |ow show the corr|
00000880  65 63 74 65 64 20 6f 70  65 6e 69 6e 67 20 73 63  |ected opening sc|
00000890  72 65 65 6e 2e 0d 0d 4f  54 48 45 52 20 47 41 4d  |reen...OTHER GAM|
000008a0  45 53 0d 7e 7e 7e 7e 7e  7e 7e 7e 7e 7e 7e 0d 49  |ES.~~~~~~~~~~~.I|
000008b0  66 20 79 6f 75 20 68 61  76 65 20 61 6e 79 20 6f  |f you have any o|
000008c0  74 68 65 72 20 67 61 6d  65 73 20 77 68 69 63 68  |ther games which|
000008d0  20 6c 6f 61 64 20 74 68  65 20 63 68 61 72 61 63  | load the charac|
000008e0  74 65 72 20 64 61 74 61  20 74 6f 20 26 43 2c 20  |ter data to &C, |
000008f0  68 65 72 65 20 69 73 20  61 0d 73 69 6d 70 6c 65  |here is a.simple|
00000900  20 77 61 79 20 6f 66 20  63 6f 6e 76 65 72 74 69  | way of converti|
00000910  6e 67 20 74 68 65 20 64  61 74 61 20 74 6f 20 64  |ng the data to d|
00000920  65 66 69 6e 65 20 74 68  65 20 63 68 61 72 61 63  |efine the charac|
00000930  74 65 72 73 2e 0d 0d 41  64 64 1a 20 74 68 65 1a  |ters...Add. the.|
00000940  20 50 52 4f 43 65 64 75  72 65 1a 20 27 43 48 50  | PROCedure. 'CHP|
00000950  52 4f 43 27 2c 1a 20 69  6e 63 6c 75 64 65 64 1a  |ROC',. included.|
00000960  20 6f 6e 1a 20 74 68 65  20 64 69 73 63 2c 20 74  | on. the disc, t|
00000970  6f 20 74 68 65 20 65 6e  64 20 6f 66 20 79 6f 75  |o the end of you|
00000980  72 0d 70 72 6f 67 72 61  6d 20 62 79 20 75 73 69  |r.program by usi|
00000990  6e 67 20 4f 53 43 4c 49  22 4c 4f 41 44 20 43 48  |ng OSCLI"LOAD CH|
000009a0  50 52 4f 43 20 22 2b 53  54 52 24 7e 28 54 4f 50  |PROC "+STR$~(TOP|
000009b0  2d 32 29 2e 20 20 54 68  65 6e 1a 20 61 64 64 1a  |-2).  Then. add.|
000009c0  20 50 52 4f 43 63 68 20  74 6f 20 61 0d 6c 69 6e  | PROCch to a.lin|
000009d0  65 20 61 66 74 65 72 20  74 68 65 20 64 61 74 61  |e after the data|
000009e0  20 69 73 20 4c 4f 41 44  65 64 2e 20 20 49 20 68  | is LOADed.  I h|
000009f0  61 76 65 20 75 73 65 64  20 74 68 69 73 20 77 69  |ave used this wi|
00000a00  74 68 20 74 68 65 20 55  4e 4f 20 70 72 6f 67 72  |th the UNO progr|
00000a10  61 6d 20 74 68 61 74 0d  68 61 73 20 62 65 65 6e  |am that.has been|
00000a20  20 70 75 62 6c 69 73 68  65 64 20 69 6e 20 74 68  | published in th|
00000a30  65 20 6d 61 67 61 7a 69  6e 65 2e 20 20 54 68 65  |e magazine.  The|
00000a40  20 63 68 61 72 61 63 74  65 72 73 20 61 72 65 1a  | characters are.|
00000a50  20 6e 75 6d 62 65 72 65  64 1a 20 31 32 38 1a 20  | numbered. 128. |
00000a60  74 6f 0d 31 35 39 20 73  6f 20 74 68 61 74 20 74  |to.159 so that t|
00000a70  68 65 20 50 52 4f 43 20  6e 65 65 64 73 20 61 6d  |he PROC needs am|
00000a80  65 6e 64 69 6e 67 20 61  6e 64 20 74 68 65 6e 20  |ending and then |
00000a90  61 64 64 65 64 20 74 6f  20 55 4e 4f 4c 4f 41 44  |added to UNOLOAD|
00000aa0  2e 0d 0d 2a 2a 2a 2a 2a  2a 2a 2a 2a 2a 2a 2a 2a  |...*************|
00000ab0  2a 2a 2a 2a 2a 2a 2a 2a  2a 2a 2a 2a 2a 2a 2a 2a  |****************|
*
00000ae0  2a 2a 2a 2a 2a 2a 2a 2a  2a 2a 2a 2a 2a 0d 0d     |*************..|
00000aef
G/MODS1.m0
G/MODS1.m1
G/MODS1.m2
G/MODS1.m4
G/MODS1.m5