Home » Archimedes archive » Acorn User » AU 1997-11 A.adf » Regulars1 » MikeC/QA/!PrinterBJ/!Run

MikeC/QA/!PrinterBJ/!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 » Acorn User » AU 1997-11 A.adf » Regulars1
Filename: MikeC/QA/!PrinterBJ/!Run
Read OK:
File size: 033C bytes
Load address: 0000
Exec address: 0000
File contents
| > !BubbleJet.!Run
|
| 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>.BubbleJet
|
Wimpslot -min 72K -max 72K
|
Run <PDriver$Dir>.!RunImage
00000000  7c 20 3e 20 21 42 75 62  62 6c 65 4a 65 74 2e 21  || > !BubbleJet.!|
00000010  52 75 6e 0a 7c 0a 7c 20  49 66 20 22 3c 24 50 72  |Run.|.| If "<$Pr|
00000020  69 6e 74 69 6e 67 3e 22  3c 3e 22 22 20 54 68 65  |inting>"<>"" The|
00000030  6e 20 45 72 72 6f 72 20  34 32 20 50 72 69 6e 74  |n Error 42 Print|
00000040  65 72 20 69 6e 20 75 73  65 0a 7c 0a 53 65 74 20  |er in use.|.Set |
00000050  50 44 72 69 76 65 72 24  44 69 72 20 3c 4f 62 65  |PDriver$Dir <Obe|
00000060  79 24 44 69 72 3e 0a 49  63 6f 6e 73 70 72 69 74  |y$Dir>.Iconsprit|
00000070  65 73 20 3c 50 44 72 69  76 65 72 24 44 69 72 3e  |es <PDriver$Dir>|
00000080  2e 21 53 70 72 69 74 65  73 0a 53 65 74 20 46 69  |.!Sprites.Set Fi|
00000090  6c 65 24 54 79 70 65 5f  46 46 34 20 22 50 72 69  |le$Type_FF4 "Pri|
000000a0  6e 74 6f 75 74 22 0a 7c  0a 7c 20 41 6c 6c 6f 77  |ntout".|.| Allow|
000000b0  20 61 6c 74 65 72 6e 61  74 69 76 65 20 76 61 6c  | alternative val|
000000c0  75 65 73 20 66 6f 72 20  50 72 69 6e 74 65 72 24  |ues for Printer$|
000000d0  53 63 72 61 70 20 61 6e  64 20 50 72 69 6e 74 65  |Scrap and Printe|
000000e0  72 24 54 65 6d 70 0a 7c  20 54 68 65 73 65 20 63  |r$Temp.| These c|
000000f0  6f 75 6c 64 20 62 65 20  64 69 72 65 63 74 65 64  |ould be directed|
00000100  20 74 6f 20 75 73 65 20  74 68 65 20 52 41 4d 20  | to use the RAM |
00000110  66 69 6c 69 6e 67 20 73  79 73 74 65 6d 2c 20 66  |filing system, f|
00000120  6f 72 20 65 78 61 6d 70  6c 65 2e 0a 7c 0a 49 66  |or example..|.If|
00000130  20 22 3c 50 72 69 6e 74  65 72 24 53 63 72 61 70  | "<Printer$Scrap|
00000140  3e 22 20 3d 20 22 22 20  4f 52 20 22 3c 50 72 69  |>" = "" OR "<Pri|
00000150  6e 74 65 72 24 53 63 72  61 70 3e 22 20 52 49 47  |nter$Scrap>" RIG|
00000160  48 54 20 36 20 3d 20 22  21 53 63 72 61 70 22 20  |HT 6 = "!Scrap" |
00000170  54 68 65 6e 20 53 65 74  20 50 72 69 6e 74 65 72  |Then Set Printer|
00000180  24 53 63 72 61 70 20 3c  50 44 72 69 76 65 72 24  |$Scrap <PDriver$|
00000190  44 69 72 3e 2e 44 4d 21  53 63 72 61 70 0a 49 66  |Dir>.DM!Scrap.If|
000001a0  20 22 3c 50 72 69 6e 74  65 72 24 54 65 6d 70 3e  | "<Printer$Temp>|
000001b0  22 20 3d 20 22 22 20 4f  52 20 22 3c 50 72 69 6e  |" = "" OR "<Prin|
000001c0  74 65 72 24 54 65 6d 70  3e 22 20 52 49 47 48 54  |ter$Temp>" RIGHT|
000001d0  20 35 20 3d 20 22 21 54  65 6d 70 22 20 54 68 65  | 5 = "!Temp" The|
000001e0  6e 20 53 65 74 20 50 72  69 6e 74 65 72 24 54 65  |n Set Printer$Te|
000001f0  6d 70 20 3c 50 44 72 69  76 65 72 24 44 69 72 3e  |mp <PDriver$Dir>|
00000200  2e 44 4d 21 54 65 6d 70  0a 7c 0a 7c 20 4d 75 73  |.DM!Temp.|.| Mus|
00000210  74 20 6c 6f 61 64 20 43  6f 6c 6f 75 72 54 72 61  |t load ColourTra|
00000220  6e 73 20 62 65 66 6f 72  65 20 74 68 65 20 70 72  |ns before the pr|
00000230  69 6e 74 65 72 20 64 72  69 76 65 72 20 6d 6f 64  |inter driver mod|
00000240  75 6c 65 0a 7c 0a 52 4d  45 6e 73 75 72 65 20 43  |ule.|.RMEnsure C|
00000250  6f 6c 6f 75 72 54 72 61  6e 73 20 30 2e 35 32 20  |olourTrans 0.52 |
00000260  52 4d 4c 6f 61 64 20 3c  50 44 72 69 76 65 72 24  |RMLoad <PDriver$|
00000270  44 69 72 3e 2e 43 6f 6c  6f 75 72 73 0a 7c 0a 7c  |Dir>.Colours.|.||
00000280  20 49 6e 73 74 61 6c 6c  20 70 72 69 6e 74 65 72  | Install printer|
00000290  20 64 72 69 76 65 72 20  6d 6f 64 75 6c 65 0a 7c  | driver module.||
000002a0  20 44 6f 6e 27 74 20 52  4d 45 6e 73 75 72 65 20  | Don't RMEnsure |
000002b0  61 73 20 77 65 20 61 72  65 20 70 72 6f 62 61 62  |as we are probab|
000002c0  6c 79 20 72 65 70 6c 61  63 69 6e 67 20 73 6f 6d  |ly replacing som|
000002d0  65 20 6f 74 68 65 72 20  70 72 69 6e 74 65 72 0a  |e other printer.|
000002e0  7c 0a 52 4d 4c 6f 61 64  20 3c 50 44 72 69 76 65  ||.RMLoad <PDrive|
000002f0  72 24 44 69 72 3e 2e 42  75 62 62 6c 65 4a 65 74  |r$Dir>.BubbleJet|
00000300  0a 7c 0a 57 69 6d 70 73  6c 6f 74 20 2d 6d 69 6e  |.|.Wimpslot -min|
00000310  20 37 32 4b 20 2d 6d 61  78 20 37 32 4b 0a 7c 0a  | 72K -max 72K.|.|
00000320  52 75 6e 20 3c 50 44 72  69 76 65 72 24 44 69 72  |Run <PDriver$Dir|
00000330  3e 2e 21 52 75 6e 49 6d  61 67 65 0a              |>.!RunImage.|
0000033c