Home » Archimedes archive » Acorn User » AU 1994-12.adf » !StarInfo_StarInfo » Marriott/SmallFontI
Marriott/SmallFontI
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-12.adf » !StarInfo_StarInfo |
Filename: | Marriott/SmallFontI |
Read OK: | ✔ |
File size: | 05A0 bytes |
Load address: | 0000 |
Exec address: | 0000 |
File contents
Information on SmallFont version 1.12 ------------------------------------- You know the extremely tiny text you see in some games, where fitting a lot on the screen is important, (eg in SWIV, on the screens which show info about the jeep and helicopter). Well, all this small module does is allow you to use that text in your own programs, to save space on screen. Each character is 3 by 5 pixels and will only look right in big pixel modes such as mode 9 and 13 (you can read them in mode 12 etc but the pixels are interspaced by black lines). The characters are drawn in the current graphics foreground colour using two SWIs: SWI "Small_Char" This SWI needs three parameters: R0 - ASCII code (32 - 95) R1 - Screen X co-ordinate (normal graphics co-ordinates) R2 - Screen Y co-ordinate (normal graphics co-ordinates) It will plot one character onto the screen, only characters 32 to 95 are accepted, if the ASCII code specified is outside this range, you will get error "ASCII code not supported". SWI "Small_String" This SWI needs three parameters as well: R0 - Pointer to string of characters R1 - Screen X co-ordinate (normal graphics co-ordinates) R2 - Screen Y co-ordinate (normal graphics co-ordinates) It will plot a string onto the screen at the given X and Y co- ordinates. This module was written by: Nicholas Marriott, Co. Derry, N.Ireland,
00000000 0a 49 6e 66 6f 72 6d 61 74 69 6f 6e 20 6f 6e 20 |.Information on | 00000010 53 6d 61 6c 6c 46 6f 6e 74 20 76 65 72 73 69 6f |SmallFont versio| 00000020 6e 20 31 2e 31 32 0a 2d 2d 2d 2d 2d 2d 2d 2d 2d |n 1.12.---------| 00000030 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d |----------------| 00000040 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 0a 0a 59 6f |------------..Yo| 00000050 75 20 6b 6e 6f 77 20 74 68 65 20 65 78 74 72 65 |u know the extre| 00000060 6d 65 6c 79 20 74 69 6e 79 20 74 65 78 74 20 79 |mely tiny text y| 00000070 6f 75 20 73 65 65 20 69 6e 20 73 6f 6d 65 20 67 |ou see in some g| 00000080 61 6d 65 73 2c 20 77 68 65 72 65 0a 66 69 74 74 |ames, where.fitt| 00000090 69 6e 67 20 61 20 6c 6f 74 20 6f 6e 20 74 68 65 |ing a lot on the| 000000a0 20 73 63 72 65 65 6e 20 69 73 20 69 6d 70 6f 72 | screen is impor| 000000b0 74 61 6e 74 2c 20 28 65 67 20 69 6e 20 53 57 49 |tant, (eg in SWI| 000000c0 56 2c 20 6f 6e 20 74 68 65 0a 73 63 72 65 65 6e |V, on the.screen| 000000d0 73 20 77 68 69 63 68 20 73 68 6f 77 20 69 6e 66 |s which show inf| 000000e0 6f 20 61 62 6f 75 74 20 74 68 65 20 6a 65 65 70 |o about the jeep| 000000f0 20 61 6e 64 20 68 65 6c 69 63 6f 70 74 65 72 29 | and helicopter)| 00000100 2e 20 57 65 6c 6c 2c 0a 61 6c 6c 20 74 68 69 73 |. Well,.all this| 00000110 20 73 6d 61 6c 6c 20 6d 6f 64 75 6c 65 20 64 6f | small module do| 00000120 65 73 20 69 73 20 61 6c 6c 6f 77 20 79 6f 75 20 |es is allow you | 00000130 74 6f 20 75 73 65 20 74 68 61 74 20 74 65 78 74 |to use that text| 00000140 20 69 6e 0a 79 6f 75 72 20 6f 77 6e 20 70 72 6f | in.your own pro| 00000150 67 72 61 6d 73 2c 20 74 6f 20 73 61 76 65 20 73 |grams, to save s| 00000160 70 61 63 65 20 6f 6e 20 73 63 72 65 65 6e 2e 20 |pace on screen. | 00000170 45 61 63 68 20 63 68 61 72 61 63 74 65 72 20 69 |Each character i| 00000180 73 0a 33 20 62 79 20 35 20 70 69 78 65 6c 73 20 |s.3 by 5 pixels | 00000190 61 6e 64 20 77 69 6c 6c 20 6f 6e 6c 79 20 6c 6f |and will only lo| 000001a0 6f 6b 20 72 69 67 68 74 20 69 6e 20 62 69 67 20 |ok right in big | 000001b0 70 69 78 65 6c 20 6d 6f 64 65 73 20 73 75 63 68 |pixel modes such| 000001c0 0a 61 73 20 6d 6f 64 65 20 39 20 61 6e 64 20 31 |.as mode 9 and 1| 000001d0 33 20 28 79 6f 75 20 63 61 6e 20 72 65 61 64 20 |3 (you can read | 000001e0 74 68 65 6d 20 69 6e 20 6d 6f 64 65 20 31 32 20 |them in mode 12 | 000001f0 65 74 63 20 62 75 74 20 74 68 65 20 0a 70 69 78 |etc but the .pix| 00000200 65 6c 73 20 61 72 65 20 69 6e 74 65 72 73 70 61 |els are interspa| 00000210 63 65 64 20 62 79 20 62 6c 61 63 6b 20 6c 69 6e |ced by black lin| 00000220 65 73 29 2e 20 54 68 65 20 63 68 61 72 61 63 74 |es). The charact| 00000230 65 72 73 20 61 72 65 20 0a 64 72 61 77 6e 20 69 |ers are .drawn i| 00000240 6e 20 74 68 65 20 63 75 72 72 65 6e 74 20 67 72 |n the current gr| 00000250 61 70 68 69 63 73 20 66 6f 72 65 67 72 6f 75 6e |aphics foregroun| 00000260 64 20 63 6f 6c 6f 75 72 20 75 73 69 6e 67 20 74 |d colour using t| 00000270 77 6f 20 53 57 49 73 3a 0a 0a 0a 53 57 49 20 22 |wo SWIs:...SWI "| 00000280 53 6d 61 6c 6c 5f 43 68 61 72 22 0a 0a 0a 54 68 |Small_Char"...Th| 00000290 69 73 20 53 57 49 20 6e 65 65 64 73 20 74 68 72 |is SWI needs thr| 000002a0 65 65 20 70 61 72 61 6d 65 74 65 72 73 3a 0a 0a |ee parameters:..| 000002b0 20 20 20 20 20 20 20 20 52 30 20 2d 20 41 53 43 | R0 - ASC| 000002c0 49 49 20 63 6f 64 65 20 28 33 32 20 2d 20 39 35 |II code (32 - 95| 000002d0 29 0a 20 20 20 20 20 20 20 20 52 31 20 2d 20 53 |). R1 - S| 000002e0 63 72 65 65 6e 20 58 20 63 6f 2d 6f 72 64 69 6e |creen X co-ordin| 000002f0 61 74 65 20 28 6e 6f 72 6d 61 6c 20 67 72 61 70 |ate (normal grap| 00000300 68 69 63 73 20 63 6f 2d 6f 72 64 69 6e 61 74 65 |hics co-ordinate| 00000310 73 29 0a 20 20 20 20 20 20 20 20 52 32 20 2d 20 |s). R2 - | 00000320 53 63 72 65 65 6e 20 59 20 63 6f 2d 6f 72 64 69 |Screen Y co-ordi| 00000330 6e 61 74 65 20 28 6e 6f 72 6d 61 6c 20 67 72 61 |nate (normal gra| 00000340 70 68 69 63 73 20 63 6f 2d 6f 72 64 69 6e 61 74 |phics co-ordinat| 00000350 65 73 29 0a 0a 20 20 20 20 20 20 20 20 0a 49 74 |es).. .It| 00000360 20 77 69 6c 6c 20 70 6c 6f 74 20 6f 6e 65 20 63 | will plot one c| 00000370 68 61 72 61 63 74 65 72 20 6f 6e 74 6f 20 74 68 |haracter onto th| 00000380 65 20 73 63 72 65 65 6e 2c 20 6f 6e 6c 79 20 63 |e screen, only c| 00000390 68 61 72 61 63 74 65 72 73 20 33 32 20 74 6f 20 |haracters 32 to | 000003a0 39 35 0a 61 72 65 20 61 63 63 65 70 74 65 64 2c |95.are accepted,| 000003b0 20 69 66 20 74 68 65 20 41 53 43 49 49 20 63 6f | if the ASCII co| 000003c0 64 65 20 73 70 65 63 69 66 69 65 64 20 69 73 20 |de specified is | 000003d0 6f 75 74 73 69 64 65 20 74 68 69 73 20 72 61 6e |outside this ran| 000003e0 67 65 2c 20 79 6f 75 0a 77 69 6c 6c 20 67 65 74 |ge, you.will get| 000003f0 20 65 72 72 6f 72 20 22 41 53 43 49 49 20 63 6f | error "ASCII co| 00000400 64 65 20 6e 6f 74 20 73 75 70 70 6f 72 74 65 64 |de not supported| 00000410 22 2e 0a 0a 0a 53 57 49 20 22 53 6d 61 6c 6c 5f |"....SWI "Small_| 00000420 53 74 72 69 6e 67 22 0a 0a 0a 54 68 69 73 20 53 |String"...This S| 00000430 57 49 20 6e 65 65 64 73 20 74 68 72 65 65 20 70 |WI needs three p| 00000440 61 72 61 6d 65 74 65 72 73 20 61 73 20 77 65 6c |arameters as wel| 00000450 6c 3a 0a 0a 20 20 20 20 20 20 20 20 52 30 20 2d |l:.. R0 -| 00000460 20 50 6f 69 6e 74 65 72 20 74 6f 20 73 74 72 69 | Pointer to stri| 00000470 6e 67 20 6f 66 20 63 68 61 72 61 63 74 65 72 73 |ng of characters| 00000480 0a 20 20 20 20 20 20 20 20 52 31 20 2d 20 53 63 |. R1 - Sc| 00000490 72 65 65 6e 20 58 20 63 6f 2d 6f 72 64 69 6e 61 |reen X co-ordina| 000004a0 74 65 20 28 6e 6f 72 6d 61 6c 20 67 72 61 70 68 |te (normal graph| 000004b0 69 63 73 20 63 6f 2d 6f 72 64 69 6e 61 74 65 73 |ics co-ordinates| 000004c0 29 0a 20 20 20 20 20 20 20 20 52 32 20 2d 20 53 |). R2 - S| 000004d0 63 72 65 65 6e 20 59 20 63 6f 2d 6f 72 64 69 6e |creen Y co-ordin| 000004e0 61 74 65 20 28 6e 6f 72 6d 61 6c 20 67 72 61 70 |ate (normal grap| 000004f0 68 69 63 73 20 63 6f 2d 6f 72 64 69 6e 61 74 65 |hics co-ordinate| 00000500 73 29 0a 0a 20 20 20 20 20 20 20 20 0a 49 74 20 |s).. .It | 00000510 77 69 6c 6c 20 70 6c 6f 74 20 61 20 73 74 72 69 |will plot a stri| 00000520 6e 67 20 6f 6e 74 6f 20 74 68 65 20 73 63 72 65 |ng onto the scre| 00000530 65 6e 20 61 74 20 74 68 65 20 67 69 76 65 6e 20 |en at the given | 00000540 58 20 61 6e 64 20 59 20 63 6f 2d 0a 6f 72 64 69 |X and Y co-.ordi| 00000550 6e 61 74 65 73 2e 0a 0a 0a 0a 54 68 69 73 20 6d |nates.....This m| 00000560 6f 64 75 6c 65 20 77 61 73 20 77 72 69 74 74 65 |odule was writte| 00000570 6e 20 62 79 3a 0a 0a 4e 69 63 68 6f 6c 61 73 20 |n by:..Nicholas | 00000580 4d 61 72 72 69 6f 74 74 2c 0a 43 6f 2e 20 44 65 |Marriott,.Co. De| 00000590 72 72 79 2c 0a 4e 2e 49 72 65 6c 61 6e 64 2c 0a |rry,.N.Ireland,.| 000005a0