Home » Archimedes archive » Acorn User » AU 1994-04.adf » !WriteDemo_WriteDemo » Modules/ScrollText/Info
Modules/ScrollText/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/ScrollText/Info |
Read OK: | ✔ |
File size: | 09F9 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/ScrollText/Info
- Archimedes archive » Acorn User » AU 1994-06.adf » !WriteDemo_WriteDemo » Modules/ScrollText/Info
- Archimedes archive » Acorn User » AU 1994-05.adf » !WriteDemo_WriteDemo » Modules/ScrollText/Info
File contents
Name : ScrollText Author : Mark Hobson Version : 1.01 Date : 15-Feb-94 Description : Plots the scrolltext, and sets up trigger flag. On exit : R11 = trigger flag Fixed variables : Waveform positions Resources : 'Sprites' - letter sprites 16 x 16 with mask from ASCII 32 to ASCII 90 in order 'Text' - textfile to be scrolled including special characters (see below) 'Waveforms' - textfile containing details of the different waveforms used by the scrolltext Utilities : 'TryWave' - shows waveform data graphical to allow the user to experiment more easily Details : The trigger flag is initally zero. When the scroll routine encounters a 'special character' (a lower case letter), it sets a bit in the trigger flag. The following letters set the corresponding bit : %000000abcdefghijklmnopqrstuvwxyz � � bit 31 bit 0 This trigger flag is held in R11 when each module is called. So it is up to the module to decide whether to run its routine or not depending on the state of it's bit. The trigger characters can also be used to change the scrolltext waveform by altering the 'Waveforms' textfile. The commands for each waveform are : id: = trigger character in quotes length:= number of entries in waveform table var: = inital value of a variable called 'var' than can be referenced within the final equation inc: = amount that 'var' is increment for each entry y: = equation returning the y position in pixels from the top of the screen. All numeric values can reference variables 'length' and 'var', only after they have been defined. They can also contain commands such as SIN, COS, RAD etc. 'var:=' and 'inc:=' commands are optional.
00000000 4e 61 6d 65 20 20 20 20 20 20 20 20 20 20 20 20 |Name | 00000010 3a 20 53 63 72 6f 6c 6c 54 65 78 74 0a 41 75 74 |: ScrollText.Aut| 00000020 68 6f 72 20 20 20 20 20 20 20 20 20 20 3a 20 4d |hor : M| 00000030 61 72 6b 20 48 6f 62 73 6f 6e 0a 56 65 72 73 69 |ark Hobson.Versi| 00000040 6f 6e 20 20 20 20 20 20 20 20 20 3a 20 31 2e 30 |on : 1.0| 00000050 31 0a 44 61 74 65 20 20 20 20 20 20 20 20 20 20 |1.Date | 00000060 20 20 3a 20 31 35 2d 46 65 62 2d 39 34 0a 0a 44 | : 15-Feb-94..D| 00000070 65 73 63 72 69 70 74 69 6f 6e 20 20 20 20 20 3a |escription :| 00000080 20 50 6c 6f 74 73 20 74 68 65 20 73 63 72 6f 6c | Plots the scrol| 00000090 6c 74 65 78 74 2c 20 61 6e 64 20 73 65 74 73 20 |ltext, and sets | 000000a0 75 70 20 74 72 69 67 67 65 72 20 66 6c 61 67 2e |up trigger flag.| 000000b0 0a 0a 4f 6e 20 65 78 69 74 20 20 20 20 20 20 20 |..On exit | 000000c0 20 20 3a 20 52 31 31 20 3d 20 74 72 69 67 67 65 | : R11 = trigge| 000000d0 72 20 66 6c 61 67 0a 0a 46 69 78 65 64 20 76 61 |r flag..Fixed va| 000000e0 72 69 61 62 6c 65 73 20 3a 20 57 61 76 65 66 6f |riables : Wavefo| 000000f0 72 6d 20 70 6f 73 69 74 69 6f 6e 73 0a 0a 52 65 |rm positions..Re| 00000100 73 6f 75 72 63 65 73 20 20 20 20 20 20 20 3a 20 |sources : | 00000110 27 53 70 72 69 74 65 73 27 20 20 20 20 20 2d 20 |'Sprites' - | 00000120 6c 65 74 74 65 72 20 73 70 72 69 74 65 73 20 31 |letter sprites 1| 00000130 36 20 78 20 31 36 20 77 69 74 68 20 6d 61 73 6b |6 x 16 with mask| 00000140 0a 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 |. | 00000150 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 | | 00000160 20 20 20 66 72 6f 6d 20 41 53 43 49 49 20 33 32 | from ASCII 32| 00000170 20 74 6f 20 41 53 43 49 49 20 39 30 20 69 6e 20 | to ASCII 90 in | 00000180 6f 72 64 65 72 0a 0a 20 20 20 20 20 20 20 20 20 |order.. | 00000190 20 20 20 20 20 20 20 20 20 27 54 65 78 74 27 20 | 'Text' | 000001a0 20 20 20 20 20 20 20 2d 20 74 65 78 74 66 69 6c | - textfil| 000001b0 65 20 74 6f 20 62 65 20 73 63 72 6f 6c 6c 65 64 |e to be scrolled| 000001c0 20 69 6e 63 6c 75 64 69 6e 67 20 73 70 65 63 69 | including speci| 000001d0 61 6c 0a 20 20 20 20 20 20 20 20 20 20 20 20 20 |al. | 000001e0 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 | | 000001f0 20 20 20 20 20 63 68 61 72 61 63 74 65 72 73 20 | characters | 00000200 28 73 65 65 20 62 65 6c 6f 77 29 0a 0a 20 20 20 |(see below).. | 00000210 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 27 | '| 00000220 57 61 76 65 66 6f 72 6d 73 27 20 20 20 2d 20 74 |Waveforms' - t| 00000230 65 78 74 66 69 6c 65 20 63 6f 6e 74 61 69 6e 69 |extfile containi| 00000240 6e 67 20 64 65 74 61 69 6c 73 20 6f 66 20 74 68 |ng details of th| 00000250 65 0a 20 20 20 20 20 20 20 20 20 20 20 20 20 20 |e. | 00000260 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 | | 00000270 20 20 20 20 64 69 66 66 65 72 65 6e 74 20 77 61 | different wa| 00000280 76 65 66 6f 72 6d 73 20 75 73 65 64 20 62 79 20 |veforms used by | 00000290 74 68 65 20 73 63 72 6f 6c 6c 74 65 78 74 0a 0a |the scrolltext..| 000002a0 55 74 69 6c 69 74 69 65 73 20 20 20 20 20 20 20 |Utilities | 000002b0 3a 20 27 54 72 79 57 61 76 65 27 20 20 20 20 20 |: 'TryWave' | 000002c0 2d 20 73 68 6f 77 73 20 77 61 76 65 66 6f 72 6d |- shows waveform| 000002d0 20 64 61 74 61 20 67 72 61 70 68 69 63 61 6c 20 | data graphical | 000002e0 74 6f 20 61 6c 6c 6f 77 0a 20 20 20 20 20 20 20 |to allow. | 000002f0 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 | | 00000300 20 20 20 20 20 20 20 20 20 20 20 74 68 65 20 75 | the u| 00000310 73 65 72 20 74 6f 20 65 78 70 65 72 69 6d 65 6e |ser to experimen| 00000320 74 20 6d 6f 72 65 20 65 61 73 69 6c 79 0a 0a 44 |t more easily..D| 00000330 65 74 61 69 6c 73 20 20 20 20 20 20 20 20 20 3a |etails :| 00000340 20 54 68 65 20 74 72 69 67 67 65 72 20 66 6c 61 | The trigger fla| 00000350 67 20 69 73 20 69 6e 69 74 61 6c 6c 79 20 7a 65 |g is initally ze| 00000360 72 6f 2e 20 57 68 65 6e 20 74 68 65 20 73 63 72 |ro. When the scr| 00000370 6f 6c 6c 20 72 6f 75 74 69 6e 65 0a 20 20 20 20 |oll routine. | 00000380 20 20 20 20 20 20 20 20 20 20 20 20 20 20 65 6e | en| 00000390 63 6f 75 6e 74 65 72 73 20 61 20 27 73 70 65 63 |counters a 'spec| 000003a0 69 61 6c 20 63 68 61 72 61 63 74 65 72 27 20 28 |ial character' (| 000003b0 61 20 6c 6f 77 65 72 20 63 61 73 65 20 6c 65 74 |a lower case let| 000003c0 74 65 72 29 2c 0a 20 20 20 20 20 20 20 20 20 20 |ter),. | 000003d0 20 20 20 20 20 20 20 20 69 74 20 73 65 74 73 20 | it sets | 000003e0 61 20 62 69 74 20 69 6e 20 74 68 65 20 74 72 69 |a bit in the tri| 000003f0 67 67 65 72 20 66 6c 61 67 2e 0a 0a 20 20 20 20 |gger flag... | 00000400 20 20 20 20 20 20 20 20 20 20 20 20 20 20 54 68 | Th| 00000410 65 20 66 6f 6c 6c 6f 77 69 6e 67 20 6c 65 74 74 |e following lett| 00000420 65 72 73 20 73 65 74 20 74 68 65 20 63 6f 72 72 |ers set the corr| 00000430 65 73 70 6f 6e 64 69 6e 67 20 62 69 74 20 3a 0a |esponding bit :.| 00000440 0a 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 |. | 00000450 20 20 20 25 30 30 30 30 30 30 61 62 63 64 65 66 | %000000abcdef| 00000460 67 68 69 6a 6b 6c 6d 6e 6f 70 71 72 73 74 75 76 |ghijklmnopqrstuv| 00000470 77 78 79 7a 0a 20 20 20 20 20 20 20 20 20 20 20 |wxyz. | 00000480 20 20 20 20 20 20 20 20 8b 20 20 20 20 20 20 20 | . | 00000490 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 | | 000004a0 20 20 20 20 20 20 20 8b 0a 20 20 20 20 20 20 20 | .. | 000004b0 20 20 20 20 20 20 20 20 20 20 20 20 62 69 74 20 | bit | 000004c0 33 31 20 20 20 20 20 20 20 20 20 20 20 20 20 20 |31 | 000004d0 20 20 20 20 20 20 20 62 69 74 20 30 0a 0a 20 20 | bit 0.. | 000004e0 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 | | 000004f0 54 68 69 73 20 74 72 69 67 67 65 72 20 66 6c 61 |This trigger fla| 00000500 67 20 69 73 20 68 65 6c 64 20 69 6e 20 52 31 31 |g is held in R11| 00000510 20 77 68 65 6e 20 65 61 63 68 20 6d 6f 64 75 6c | when each modul| 00000520 65 20 69 73 0a 20 20 20 20 20 20 20 20 20 20 20 |e is. | 00000530 20 20 20 20 20 20 20 63 61 6c 6c 65 64 2e 20 53 | called. S| 00000540 6f 20 69 74 20 69 73 20 75 70 20 74 6f 20 74 68 |o it is up to th| 00000550 65 20 6d 6f 64 75 6c 65 20 74 6f 20 64 65 63 69 |e module to deci| 00000560 64 65 20 77 68 65 74 68 65 72 20 74 6f 20 72 75 |de whether to ru| 00000570 6e 0a 20 20 20 20 20 20 20 20 20 20 20 20 20 20 |n. | 00000580 20 20 20 20 69 74 73 20 72 6f 75 74 69 6e 65 20 | its routine | 00000590 6f 72 20 6e 6f 74 20 64 65 70 65 6e 64 69 6e 67 |or not depending| 000005a0 20 6f 6e 20 74 68 65 20 73 74 61 74 65 20 6f 66 | on the state of| 000005b0 20 69 74 27 73 20 62 69 74 2e 0a 0a 20 20 20 20 | it's bit... | 000005c0 20 20 20 20 20 20 20 20 20 20 20 20 20 20 54 68 | Th| 000005d0 65 20 74 72 69 67 67 65 72 20 63 68 61 72 61 63 |e trigger charac| 000005e0 74 65 72 73 20 63 61 6e 20 61 6c 73 6f 20 62 65 |ters can also be| 000005f0 20 75 73 65 64 20 74 6f 20 63 68 61 6e 67 65 20 | used to change | 00000600 74 68 65 0a 20 20 20 20 20 20 20 20 20 20 20 20 |the. | 00000610 20 20 20 20 20 20 73 63 72 6f 6c 6c 74 65 78 74 | scrolltext| 00000620 20 77 61 76 65 66 6f 72 6d 20 62 79 20 61 6c 74 | waveform by alt| 00000630 65 72 69 6e 67 20 74 68 65 20 27 57 61 76 65 66 |ering the 'Wavef| 00000640 6f 72 6d 73 27 20 74 65 78 74 66 69 6c 65 2e 0a |orms' textfile..| 00000650 0a 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 |. | 00000660 20 20 20 54 68 65 20 63 6f 6d 6d 61 6e 64 73 20 | The commands | 00000670 66 6f 72 20 65 61 63 68 20 77 61 76 65 66 6f 72 |for each wavefor| 00000680 6d 20 61 72 65 20 3a 0a 20 20 20 20 20 20 20 20 |m are :. | 00000690 20 20 20 20 20 20 20 20 20 20 0a 20 20 20 20 20 | . | 000006a0 20 20 20 20 20 20 20 20 20 20 20 20 20 69 64 3a | id:| 000006b0 20 20 20 20 3d 20 74 72 69 67 67 65 72 20 63 68 | = trigger ch| 000006c0 61 72 61 63 74 65 72 20 69 6e 20 71 75 6f 74 65 |aracter in quote| 000006d0 73 0a 20 20 20 20 20 20 20 20 20 20 20 20 20 20 |s. | 000006e0 20 20 20 20 0a 20 20 20 20 20 20 20 20 20 20 20 | . | 000006f0 20 20 20 20 20 20 20 6c 65 6e 67 74 68 3a 3d 20 | length:= | 00000700 6e 75 6d 62 65 72 20 6f 66 20 65 6e 74 72 69 65 |number of entrie| 00000710 73 20 69 6e 20 77 61 76 65 66 6f 72 6d 20 74 61 |s in waveform ta| 00000720 62 6c 65 0a 20 20 20 20 20 20 20 20 20 20 20 20 |ble. | 00000730 20 20 20 20 20 20 0a 20 20 20 20 20 20 20 20 20 | . | 00000740 20 20 20 20 20 20 20 20 20 76 61 72 3a 20 20 20 | var: | 00000750 3d 20 69 6e 69 74 61 6c 20 76 61 6c 75 65 20 6f |= inital value o| 00000760 66 20 61 20 76 61 72 69 61 62 6c 65 20 63 61 6c |f a variable cal| 00000770 6c 65 64 20 27 76 61 72 27 20 74 68 61 6e 0a 20 |led 'var' than. | 00000780 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 | | 00000790 20 20 20 20 20 20 20 20 20 20 63 61 6e 20 62 65 | can be| 000007a0 20 72 65 66 65 72 65 6e 63 65 64 20 77 69 74 68 | referenced with| 000007b0 69 6e 20 74 68 65 20 66 69 6e 61 6c 20 65 71 75 |in the final equ| 000007c0 61 74 69 6f 6e 0a 20 20 20 20 20 20 20 20 20 20 |ation. | 000007d0 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 | | 000007e0 20 0a 20 20 20 20 20 20 20 20 20 20 20 20 20 20 | . | 000007f0 20 20 20 20 69 6e 63 3a 20 20 20 3d 20 61 6d 6f | inc: = amo| 00000800 75 6e 74 20 74 68 61 74 20 27 76 61 72 27 20 69 |unt that 'var' i| 00000810 73 20 69 6e 63 72 65 6d 65 6e 74 20 66 6f 72 20 |s increment for | 00000820 65 61 63 68 20 65 6e 74 72 79 0a 20 20 20 20 20 |each entry. | 00000830 20 20 20 20 20 20 20 20 20 20 20 20 20 0a 20 20 | . | 00000840 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 | | 00000850 79 3a 20 20 20 20 20 3d 20 65 71 75 61 74 69 6f |y: = equatio| 00000860 6e 20 72 65 74 75 72 6e 69 6e 67 20 74 68 65 20 |n returning the | 00000870 79 20 70 6f 73 69 74 69 6f 6e 20 69 6e 20 70 69 |y position in pi| 00000880 78 65 6c 73 20 66 72 6f 6d 0a 20 20 20 20 20 20 |xels from. | 00000890 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 | | 000008a0 20 20 20 20 20 74 68 65 20 74 6f 70 20 6f 66 20 | the top of | 000008b0 74 68 65 20 73 63 72 65 65 6e 2e 0a 20 20 20 20 |the screen.. | 000008c0 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 | | 000008d0 20 20 20 20 20 20 20 0a 20 20 20 20 20 20 20 20 | . | 000008e0 20 20 20 20 20 20 20 20 20 20 41 6c 6c 20 6e 75 | All nu| 000008f0 6d 65 72 69 63 20 76 61 6c 75 65 73 20 63 61 6e |meric values can| 00000900 20 72 65 66 65 72 65 6e 63 65 20 76 61 72 69 61 | reference varia| 00000910 62 6c 65 73 20 27 6c 65 6e 67 74 68 27 20 61 6e |bles 'length' an| 00000920 64 0a 20 20 20 20 20 20 20 20 20 20 20 20 20 20 |d. | 00000930 20 20 20 20 27 76 61 72 27 2c 20 6f 6e 6c 79 20 | 'var', only | 00000940 61 66 74 65 72 20 74 68 65 79 20 68 61 76 65 20 |after they have | 00000950 62 65 65 6e 20 64 65 66 69 6e 65 64 2e 20 54 68 |been defined. Th| 00000960 65 79 20 63 61 6e 20 61 6c 73 6f 0a 20 20 20 20 |ey can also. | 00000970 20 20 20 20 20 20 20 20 20 20 20 20 20 20 63 6f | co| 00000980 6e 74 61 69 6e 20 63 6f 6d 6d 61 6e 64 73 20 73 |ntain commands s| 00000990 75 63 68 20 61 73 20 53 49 4e 2c 20 43 4f 53 2c |uch as SIN, COS,| 000009a0 20 52 41 44 20 65 74 63 2e 0a 20 20 20 20 20 20 | RAD etc.. | 000009b0 20 20 20 20 20 20 20 20 20 20 20 20 0a 20 20 20 | . | 000009c0 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 27 | '| 000009d0 76 61 72 3a 3d 27 20 61 6e 64 20 27 69 6e 63 3a |var:=' and 'inc:| 000009e0 3d 27 20 63 6f 6d 6d 61 6e 64 73 20 61 72 65 20 |=' commands are | 000009f0 6f 70 74 69 6f 6e 61 6c 2e |optional.| 000009f9