Home » Personal collection » Acorn ADFS disks » Greaseweazled » adfs_RiscOs_Apps_1.adf » !PrinterDM/!Run

!PrinterDM/!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 » Personal collection » Acorn ADFS disks » Greaseweazled » adfs_RiscOs_Apps_1.adf
Filename: !PrinterDM/!Run
Read OK:
File size: 035A bytes
Load address: FFFFEB41
Exec address: C7593F91
Duplicates

There is 1 duplicate copy of this file in the archive:

File contents
| > !PrinterDM.!Run
|
| PrinterDM V1.12 (11-Jul-89)
|
If "<$Printing>"<>"" Then Error 42 Printer in use
|
Set PDriver$Dir <Obey$Dir>
Iconsprites <PDriver$Dir>.!Sprites
Set File$Type_FF4 "Printout"
|
| Allow alternative values for Printer$Scrap and Printer$Temp
| These could be directed to use the RAM filing system, for example.
|
If "<Printer$Scrap>" = "" OR "<Printer$Scrap>" RIGHT 6 = "!Scrap" Then Set Printer$Scrap <PDriver$Dir>.DM!Scrap
If "<Printer$Temp>" = "" OR "<Printer$Temp>" RIGHT 5 = "!Temp" Then Set Printer$Temp <PDriver$Dir>.DM!Temp
|
| Must load ColourTrans before the printer driver module
|
RMEnsure ColourTrans 0.52 RMLoad <PDriver$Dir>.Colours
|
| Install printer driver module
| Don't RMEnsure as we are probably replacing some other printer
|
RMLoad <PDriver$Dir>.PDriverDM
|
Wimpslot -min 72K -max 72K
|
Run <PDriver$Dir>.!RunImage
00000000  7c 20 3e 20 21 50 72 69  6e 74 65 72 44 4d 2e 21  || > !PrinterDM.!|
00000010  52 75 6e 0a 7c 0a 7c 20  50 72 69 6e 74 65 72 44  |Run.|.| PrinterD|
00000020  4d 20 56 31 2e 31 32 20  28 31 31 2d 4a 75 6c 2d  |M V1.12 (11-Jul-|
00000030  38 39 29 0a 7c 0a 49 66  20 22 3c 24 50 72 69 6e  |89).|.If "<$Prin|
00000040  74 69 6e 67 3e 22 3c 3e  22 22 20 54 68 65 6e 20  |ting>"<>"" Then |
00000050  45 72 72 6f 72 20 34 32  20 50 72 69 6e 74 65 72  |Error 42 Printer|
00000060  20 69 6e 20 75 73 65 0a  7c 0a 53 65 74 20 50 44  | in use.|.Set PD|
00000070  72 69 76 65 72 24 44 69  72 20 3c 4f 62 65 79 24  |river$Dir <Obey$|
00000080  44 69 72 3e 0a 49 63 6f  6e 73 70 72 69 74 65 73  |Dir>.Iconsprites|
00000090  20 3c 50 44 72 69 76 65  72 24 44 69 72 3e 2e 21  | <PDriver$Dir>.!|
000000a0  53 70 72 69 74 65 73 0a  53 65 74 20 46 69 6c 65  |Sprites.Set File|
000000b0  24 54 79 70 65 5f 46 46  34 20 22 50 72 69 6e 74  |$Type_FF4 "Print|
000000c0  6f 75 74 22 0a 7c 0a 7c  20 41 6c 6c 6f 77 20 61  |out".|.| Allow a|
000000d0  6c 74 65 72 6e 61 74 69  76 65 20 76 61 6c 75 65  |lternative value|
000000e0  73 20 66 6f 72 20 50 72  69 6e 74 65 72 24 53 63  |s for Printer$Sc|
000000f0  72 61 70 20 61 6e 64 20  50 72 69 6e 74 65 72 24  |rap and Printer$|
00000100  54 65 6d 70 0a 7c 20 54  68 65 73 65 20 63 6f 75  |Temp.| These cou|
00000110  6c 64 20 62 65 20 64 69  72 65 63 74 65 64 20 74  |ld be directed t|
00000120  6f 20 75 73 65 20 74 68  65 20 52 41 4d 20 66 69  |o use the RAM fi|
00000130  6c 69 6e 67 20 73 79 73  74 65 6d 2c 20 66 6f 72  |ling system, for|
00000140  20 65 78 61 6d 70 6c 65  2e 0a 7c 0a 49 66 20 22  | example..|.If "|
00000150  3c 50 72 69 6e 74 65 72  24 53 63 72 61 70 3e 22  |<Printer$Scrap>"|
00000160  20 3d 20 22 22 20 4f 52  20 22 3c 50 72 69 6e 74  | = "" OR "<Print|
00000170  65 72 24 53 63 72 61 70  3e 22 20 52 49 47 48 54  |er$Scrap>" RIGHT|
00000180  20 36 20 3d 20 22 21 53  63 72 61 70 22 20 54 68  | 6 = "!Scrap" Th|
00000190  65 6e 20 53 65 74 20 50  72 69 6e 74 65 72 24 53  |en Set Printer$S|
000001a0  63 72 61 70 20 3c 50 44  72 69 76 65 72 24 44 69  |crap <PDriver$Di|
000001b0  72 3e 2e 44 4d 21 53 63  72 61 70 0a 49 66 20 22  |r>.DM!Scrap.If "|
000001c0  3c 50 72 69 6e 74 65 72  24 54 65 6d 70 3e 22 20  |<Printer$Temp>" |
000001d0  3d 20 22 22 20 4f 52 20  22 3c 50 72 69 6e 74 65  |= "" OR "<Printe|
000001e0  72 24 54 65 6d 70 3e 22  20 52 49 47 48 54 20 35  |r$Temp>" RIGHT 5|
000001f0  20 3d 20 22 21 54 65 6d  70 22 20 54 68 65 6e 20  | = "!Temp" Then |
00000200  53 65 74 20 50 72 69 6e  74 65 72 24 54 65 6d 70  |Set Printer$Temp|
00000210  20 3c 50 44 72 69 76 65  72 24 44 69 72 3e 2e 44  | <PDriver$Dir>.D|
00000220  4d 21 54 65 6d 70 0a 7c  0a 7c 20 4d 75 73 74 20  |M!Temp.|.| Must |
00000230  6c 6f 61 64 20 43 6f 6c  6f 75 72 54 72 61 6e 73  |load ColourTrans|
00000240  20 62 65 66 6f 72 65 20  74 68 65 20 70 72 69 6e  | before the prin|
00000250  74 65 72 20 64 72 69 76  65 72 20 6d 6f 64 75 6c  |ter driver modul|
00000260  65 0a 7c 0a 52 4d 45 6e  73 75 72 65 20 43 6f 6c  |e.|.RMEnsure Col|
00000270  6f 75 72 54 72 61 6e 73  20 30 2e 35 32 20 52 4d  |ourTrans 0.52 RM|
00000280  4c 6f 61 64 20 3c 50 44  72 69 76 65 72 24 44 69  |Load <PDriver$Di|
00000290  72 3e 2e 43 6f 6c 6f 75  72 73 0a 7c 0a 7c 20 49  |r>.Colours.|.| I|
000002a0  6e 73 74 61 6c 6c 20 70  72 69 6e 74 65 72 20 64  |nstall printer d|
000002b0  72 69 76 65 72 20 6d 6f  64 75 6c 65 0a 7c 20 44  |river module.| D|
000002c0  6f 6e 27 74 20 52 4d 45  6e 73 75 72 65 20 61 73  |on't RMEnsure as|
000002d0  20 77 65 20 61 72 65 20  70 72 6f 62 61 62 6c 79  | we are probably|
000002e0  20 72 65 70 6c 61 63 69  6e 67 20 73 6f 6d 65 20  | replacing some |
000002f0  6f 74 68 65 72 20 70 72  69 6e 74 65 72 0a 7c 0a  |other printer.|.|
00000300  52 4d 4c 6f 61 64 20 3c  50 44 72 69 76 65 72 24  |RMLoad <PDriver$|
00000310  44 69 72 3e 2e 50 44 72  69 76 65 72 44 4d 0a 7c  |Dir>.PDriverDM.||
00000320  0a 57 69 6d 70 73 6c 6f  74 20 2d 6d 69 6e 20 37  |.Wimpslot -min 7|
00000330  32 4b 20 2d 6d 61 78 20  37 32 4b 0a 7c 0a 52 75  |2K -max 72K.|.Ru|
00000340  6e 20 3c 50 44 72 69 76  65 72 24 44 69 72 3e 2e  |n <PDriver$Dir>.|
00000350  21 52 75 6e 49 6d 61 67  65 0a                    |!RunImage.|
0000035a
!PrinterDM/!Run.m0
!PrinterDM/!Run.m1
!PrinterDM/!Run.m2
!PrinterDM/!Run.m4
!PrinterDM/!Run.m5