Home » Archimedes archive » Archimedes World » AW-1995-01-Disc2.adf » Disk2Jan95 » !AWJan95/Goodies/Event/Examples/!PrintTest/!Run

!AWJan95/Goodies/Event/Examples/!PrintTest/!Run

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 » Archimedes World » AW-1995-01-Disc2.adf » Disk2Jan95
Filename: !AWJan95/Goodies/Event/Examples/!PrintTest/!Run
Read OK:
File size: 035C bytes
Load address: 0000
Exec address: 0000
File contents
| !Run Obey file for PrintTest Application
Set PrintTest$Dir <Obey$Dir>
Set PrintTest$BasicFile <Obey$Dir>.!PrintTest
IF "<EvntShell$Path>"="" THEN ERROR 0 Shell resources not found
IconSprites <Obey$Dir>.!Sprites
|Set Dummy$Path <Run$Path>,<Obey$Dir>.Resources.
|Run Dummy:ResFind PrintTest
|Unset Dummy$Path
WimpSlot -min 160K -max 160K
|Load any modules required now
RMEnsure InterfaceManager 2.00 RMLoad <EvntShell$Path>Interface
RMEnsure InterfaceManager 2.00 Error Couldn't load Interface module
RMEnsure MenuUtils 0.11 RMLoad <EvntShell$Path>MenuUtils
RMEnsure MenuUtils 0.11 Error 0 Error Couldn't load MenuUtils Module
RMEnsure MessageTrans 0.06 RMLoad <EvntShell$Path>MsgTrans
RMEnsure MessageTrans 0.06 Error Couldn't load MsgTrans Module
|And check that there is still enough memory!
WimpSlot -min 160K -max 160K
Run <PrintTest$Dir>.!PrintTest %*0
00000000  7c 20 21 52 75 6e 20 4f  62 65 79 20 66 69 6c 65  || !Run Obey file|
00000010  20 66 6f 72 20 50 72 69  6e 74 54 65 73 74 20 41  | for PrintTest A|
00000020  70 70 6c 69 63 61 74 69  6f 6e 0a 53 65 74 20 50  |pplication.Set P|
00000030  72 69 6e 74 54 65 73 74  24 44 69 72 20 3c 4f 62  |rintTest$Dir <Ob|
00000040  65 79 24 44 69 72 3e 0a  53 65 74 20 50 72 69 6e  |ey$Dir>.Set Prin|
00000050  74 54 65 73 74 24 42 61  73 69 63 46 69 6c 65 20  |tTest$BasicFile |
00000060  3c 4f 62 65 79 24 44 69  72 3e 2e 21 50 72 69 6e  |<Obey$Dir>.!Prin|
00000070  74 54 65 73 74 0a 49 46  20 22 3c 45 76 6e 74 53  |tTest.IF "<EvntS|
00000080  68 65 6c 6c 24 50 61 74  68 3e 22 3d 22 22 20 54  |hell$Path>"="" T|
00000090  48 45 4e 20 45 52 52 4f  52 20 30 20 53 68 65 6c  |HEN ERROR 0 Shel|
000000a0  6c 20 72 65 73 6f 75 72  63 65 73 20 6e 6f 74 20  |l resources not |
000000b0  66 6f 75 6e 64 0a 49 63  6f 6e 53 70 72 69 74 65  |found.IconSprite|
000000c0  73 20 3c 4f 62 65 79 24  44 69 72 3e 2e 21 53 70  |s <Obey$Dir>.!Sp|
000000d0  72 69 74 65 73 0a 7c 53  65 74 20 44 75 6d 6d 79  |rites.|Set Dummy|
000000e0  24 50 61 74 68 20 3c 52  75 6e 24 50 61 74 68 3e  |$Path <Run$Path>|
000000f0  2c 3c 4f 62 65 79 24 44  69 72 3e 2e 52 65 73 6f  |,<Obey$Dir>.Reso|
00000100  75 72 63 65 73 2e 0a 7c  52 75 6e 20 44 75 6d 6d  |urces..|Run Dumm|
00000110  79 3a 52 65 73 46 69 6e  64 20 50 72 69 6e 74 54  |y:ResFind PrintT|
00000120  65 73 74 0a 7c 55 6e 73  65 74 20 44 75 6d 6d 79  |est.|Unset Dummy|
00000130  24 50 61 74 68 0a 57 69  6d 70 53 6c 6f 74 20 2d  |$Path.WimpSlot -|
00000140  6d 69 6e 20 31 36 30 4b  20 2d 6d 61 78 20 31 36  |min 160K -max 16|
00000150  30 4b 0a 7c 4c 6f 61 64  20 61 6e 79 20 6d 6f 64  |0K.|Load any mod|
00000160  75 6c 65 73 20 72 65 71  75 69 72 65 64 20 6e 6f  |ules required no|
00000170  77 0a 52 4d 45 6e 73 75  72 65 20 49 6e 74 65 72  |w.RMEnsure Inter|
00000180  66 61 63 65 4d 61 6e 61  67 65 72 20 32 2e 30 30  |faceManager 2.00|
00000190  20 52 4d 4c 6f 61 64 20  3c 45 76 6e 74 53 68 65  | RMLoad <EvntShe|
000001a0  6c 6c 24 50 61 74 68 3e  49 6e 74 65 72 66 61 63  |ll$Path>Interfac|
000001b0  65 0a 52 4d 45 6e 73 75  72 65 20 49 6e 74 65 72  |e.RMEnsure Inter|
000001c0  66 61 63 65 4d 61 6e 61  67 65 72 20 32 2e 30 30  |faceManager 2.00|
000001d0  20 45 72 72 6f 72 20 43  6f 75 6c 64 6e 27 74 20  | Error Couldn't |
000001e0  6c 6f 61 64 20 49 6e 74  65 72 66 61 63 65 20 6d  |load Interface m|
000001f0  6f 64 75 6c 65 0a 52 4d  45 6e 73 75 72 65 20 4d  |odule.RMEnsure M|
00000200  65 6e 75 55 74 69 6c 73  20 30 2e 31 31 20 52 4d  |enuUtils 0.11 RM|
00000210  4c 6f 61 64 20 3c 45 76  6e 74 53 68 65 6c 6c 24  |Load <EvntShell$|
00000220  50 61 74 68 3e 4d 65 6e  75 55 74 69 6c 73 0a 52  |Path>MenuUtils.R|
00000230  4d 45 6e 73 75 72 65 20  4d 65 6e 75 55 74 69 6c  |MEnsure MenuUtil|
00000240  73 20 30 2e 31 31 20 45  72 72 6f 72 20 30 20 45  |s 0.11 Error 0 E|
00000250  72 72 6f 72 20 43 6f 75  6c 64 6e 27 74 20 6c 6f  |rror Couldn't lo|
00000260  61 64 20 4d 65 6e 75 55  74 69 6c 73 20 4d 6f 64  |ad MenuUtils Mod|
00000270  75 6c 65 0a 52 4d 45 6e  73 75 72 65 20 4d 65 73  |ule.RMEnsure Mes|
00000280  73 61 67 65 54 72 61 6e  73 20 30 2e 30 36 20 52  |sageTrans 0.06 R|
00000290  4d 4c 6f 61 64 20 3c 45  76 6e 74 53 68 65 6c 6c  |MLoad <EvntShell|
000002a0  24 50 61 74 68 3e 4d 73  67 54 72 61 6e 73 0a 52  |$Path>MsgTrans.R|
000002b0  4d 45 6e 73 75 72 65 20  4d 65 73 73 61 67 65 54  |MEnsure MessageT|
000002c0  72 61 6e 73 20 30 2e 30  36 20 45 72 72 6f 72 20  |rans 0.06 Error |
000002d0  43 6f 75 6c 64 6e 27 74  20 6c 6f 61 64 20 4d 73  |Couldn't load Ms|
000002e0  67 54 72 61 6e 73 20 4d  6f 64 75 6c 65 0a 7c 41  |gTrans Module.|A|
000002f0  6e 64 20 63 68 65 63 6b  20 74 68 61 74 20 74 68  |nd check that th|
00000300  65 72 65 20 69 73 20 73  74 69 6c 6c 20 65 6e 6f  |ere is still eno|
00000310  75 67 68 20 6d 65 6d 6f  72 79 21 0a 57 69 6d 70  |ugh memory!.Wimp|
00000320  53 6c 6f 74 20 2d 6d 69  6e 20 31 36 30 4b 20 2d  |Slot -min 160K -|
00000330  6d 61 78 20 31 36 30 4b  0a 52 75 6e 20 3c 50 72  |max 160K.Run <Pr|
00000340  69 6e 74 54 65 73 74 24  44 69 72 3e 2e 21 50 72  |intTest$Dir>.!Pr|
00000350  69 6e 74 54 65 73 74 20  25 2a 30 0a              |intTest %*0.|
0000035c