Home » Archimedes archive » Acorn User » AU 1994-04.adf » !WriteDemo_WriteDemo » Modules/Swop/Info
Modules/Swop/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 » Archimedes archive » Acorn User » AU 1994-04.adf » !WriteDemo_WriteDemo |
Filename: | Modules/Swop/Info |
Read OK: | ✔ |
File size: | 03C6 bytes |
Load address: | 0000 |
Exec address: | 0000 |
Duplicates
There are 2 duplicate copies of this file in the archive:
- Archimedes archive » Acorn User » AU 1994-04.adf » !WriteDemo_WriteDemo » Modules/Swop/Info
- Archimedes archive » Acorn User » AU 1994-06.adf » !WriteDemo_WriteDemo » Modules/Swop/Info
- Archimedes archive » Acorn User » AU 1994-05.adf » !WriteDemo_WriteDemo » Modules/Swop/Info
File contents
Name : Swop Author : Mark Hobson Version : 1.01 Date : 14-Feb-94 Description : Swops the screen banks and clears the screen. On exit : R12 = current screen address Fixed variables : Whether the custom swop routine is used. Details : This is THE most important module and must be included in every demo, otherwise it shall not work. This module can use the customised code to clear only the top two thirds of the screen - because presumably the water takes up the bottom third. But it does clear the left hand strip of words where the water is, otherwise the water routine won't recognise blank missing lines in the reflection. It does this because it is faster. The source program has details of how to change the fixed variables for this.
00000000 4e 61 6d 65 20 20 20 20 20 20 20 20 20 20 20 20 |Name | 00000010 3a 20 53 77 6f 70 0a 41 75 74 68 6f 72 20 20 20 |: Swop.Author | 00000020 20 20 20 20 20 20 20 3a 20 4d 61 72 6b 20 48 6f | : Mark Ho| 00000030 62 73 6f 6e 0a 56 65 72 73 69 6f 6e 20 20 20 20 |bson.Version | 00000040 20 20 20 20 20 3a 20 31 2e 30 31 0a 44 61 74 65 | : 1.01.Date| 00000050 20 20 20 20 20 20 20 20 20 20 20 20 3a 20 31 34 | : 14| 00000060 2d 46 65 62 2d 39 34 0a 0a 44 65 73 63 72 69 70 |-Feb-94..Descrip| 00000070 74 69 6f 6e 20 20 20 20 20 3a 20 53 77 6f 70 73 |tion : Swops| 00000080 20 74 68 65 20 73 63 72 65 65 6e 20 62 61 6e 6b | the screen bank| 00000090 73 20 61 6e 64 20 63 6c 65 61 72 73 20 74 68 65 |s and clears the| 000000a0 20 73 63 72 65 65 6e 2e 0a 0a 4f 6e 20 65 78 69 | screen...On exi| 000000b0 74 20 20 20 20 20 20 20 20 20 3a 20 52 31 32 20 |t : R12 | 000000c0 3d 20 63 75 72 72 65 6e 74 20 73 63 72 65 65 6e |= current screen| 000000d0 20 61 64 64 72 65 73 73 0a 0a 46 69 78 65 64 20 | address..Fixed | 000000e0 76 61 72 69 61 62 6c 65 73 20 3a 20 57 68 65 74 |variables : Whet| 000000f0 68 65 72 20 74 68 65 20 63 75 73 74 6f 6d 20 73 |her the custom s| 00000100 77 6f 70 20 72 6f 75 74 69 6e 65 20 69 73 20 75 |wop routine is u| 00000110 73 65 64 2e 0a 0a 44 65 74 61 69 6c 73 20 20 20 |sed...Details | 00000120 20 20 20 20 20 20 3a 20 54 68 69 73 20 69 73 20 | : This is | 00000130 54 48 45 20 6d 6f 73 74 20 69 6d 70 6f 72 74 61 |THE most importa| 00000140 6e 74 20 6d 6f 64 75 6c 65 20 61 6e 64 20 6d 75 |nt module and mu| 00000150 73 74 20 62 65 20 69 6e 63 6c 75 64 65 64 20 69 |st be included i| 00000160 6e 0a 20 20 20 20 20 20 20 20 20 20 20 20 20 20 |n. | 00000170 20 20 20 20 65 76 65 72 79 20 64 65 6d 6f 2c 20 | every demo, | 00000180 6f 74 68 65 72 77 69 73 65 20 69 74 20 73 68 61 |otherwise it sha| 00000190 6c 6c 20 6e 6f 74 20 77 6f 72 6b 2e 0a 0a 20 20 |ll not work... | 000001a0 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 | | 000001b0 54 68 69 73 20 6d 6f 64 75 6c 65 20 63 61 6e 20 |This module can | 000001c0 75 73 65 20 74 68 65 20 63 75 73 74 6f 6d 69 73 |use the customis| 000001d0 65 64 20 63 6f 64 65 20 74 6f 20 63 6c 65 61 72 |ed code to clear| 000001e0 20 6f 6e 6c 79 20 74 68 65 0a 20 20 20 20 20 20 | only the. | 000001f0 20 20 20 20 20 20 20 20 20 20 20 20 74 6f 70 20 | top | 00000200 74 77 6f 20 74 68 69 72 64 73 20 6f 66 20 74 68 |two thirds of th| 00000210 65 20 73 63 72 65 65 6e 20 2d 20 62 65 63 61 75 |e screen - becau| 00000220 73 65 20 70 72 65 73 75 6d 61 62 6c 79 20 74 68 |se presumably th| 00000230 65 0a 20 20 20 20 20 20 20 20 20 20 20 20 20 20 |e. | 00000240 20 20 20 20 77 61 74 65 72 20 74 61 6b 65 73 20 | water takes | 00000250 75 70 20 74 68 65 20 62 6f 74 74 6f 6d 20 74 68 |up the bottom th| 00000260 69 72 64 2e 20 42 75 74 20 69 74 20 64 6f 65 73 |ird. But it does| 00000270 20 63 6c 65 61 72 20 74 68 65 0a 20 20 20 20 20 | clear the. | 00000280 20 20 20 20 20 20 20 20 20 20 20 20 20 6c 65 66 | lef| 00000290 74 20 68 61 6e 64 20 73 74 72 69 70 20 6f 66 20 |t hand strip of | 000002a0 77 6f 72 64 73 20 77 68 65 72 65 20 74 68 65 20 |words where the | 000002b0 77 61 74 65 72 20 69 73 2c 20 6f 74 68 65 72 77 |water is, otherw| 000002c0 69 73 65 20 74 68 65 0a 20 20 20 20 20 20 20 20 |ise the. | 000002d0 20 20 20 20 20 20 20 20 20 20 77 61 74 65 72 20 | water | 000002e0 72 6f 75 74 69 6e 65 20 77 6f 6e 27 74 20 72 65 |routine won't re| 000002f0 63 6f 67 6e 69 73 65 20 62 6c 61 6e 6b 20 6d 69 |cognise blank mi| 00000300 73 73 69 6e 67 20 6c 69 6e 65 73 20 69 6e 20 74 |ssing lines in t| 00000310 68 65 0a 20 20 20 20 20 20 20 20 20 20 20 20 20 |he. | 00000320 20 20 20 20 20 72 65 66 6c 65 63 74 69 6f 6e 2e | reflection.| 00000330 20 49 74 20 64 6f 65 73 20 74 68 69 73 20 62 65 | It does this be| 00000340 63 61 75 73 65 20 69 74 20 69 73 20 66 61 73 74 |cause it is fast| 00000350 65 72 2e 20 54 68 65 20 73 6f 75 72 63 65 0a 20 |er. The source. | 00000360 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 | | 00000370 20 70 72 6f 67 72 61 6d 20 68 61 73 20 64 65 74 | program has det| 00000380 61 69 6c 73 20 6f 66 20 68 6f 77 20 74 6f 20 63 |ails of how to c| 00000390 68 61 6e 67 65 20 74 68 65 20 66 69 78 65 64 20 |hange the fixed | 000003a0 76 61 72 69 61 62 6c 65 73 0a 20 20 20 20 20 20 |variables. | 000003b0 20 20 20 20 20 20 20 20 20 20 20 20 66 6f 72 20 | for | 000003c0 74 68 69 73 2e 0a |this..| 000003c6