annotate level1/cmds/tee.asm @ 228:a7d1dd92b04f

Added gfx
author boisy
date Tue, 16 Jul 2002 02:32:12 +0000
parents e9ce43cc215e
children c155aac72190
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
0
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
1 ********************************************************************
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
2 * Tee - Split output to multiple devices
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
3 *
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
4 * $Id$
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
5 *
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
6 * Ed. Comments Who YY/MM/DD
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
7 * ------------------------------------------------------------------
200
e9ce43cc215e Made major changes to headers for consistency and identification
boisy
parents: 15
diff changeset
8 * 2 From Tandy OS-9 Level One VR 02.00.00
0
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
9
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
10 nam Tee
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
11 ttl Split output to multiple devices
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
12
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
13 * Disassembled 98/09/14 23:50:52 by Disasm v1.6 (C) 1988 by RML
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
14
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
15 ifp1
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
16 use defsfile
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
17 endc
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
18
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
19 tylg set Prgrm+Objct
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
20 atrv set ReEnt+rev
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
21 rev set $01
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
22 edition set 2
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
23
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
24 mod eom,name,tylg,atrv,start,size
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
25
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
26 u0000 rmb 1
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
27 u0001 rmb 13
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
28 u000E rmb 1
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
29 u000F rmb 706
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
30 size equ .
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
31
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
32 name fcs /Tee/
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
33 fcb edition
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
34
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
35 start clrb
13
5a5574d54988 Touched up source comments, added mdir to Makefile
boisy
parents: 0
diff changeset
36 clr u000E,u clear path counter
0
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
37 cmpy #$0000
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
38 lbeq L0076
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
39 leay u0001,u
13
5a5574d54988 Touched up source comments, added mdir to Makefile
boisy
parents: 0
diff changeset
40
5a5574d54988 Touched up source comments, added mdir to Makefile
boisy
parents: 0
diff changeset
41 * Walk the command line parameters
0
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
42 L001E lda ,x+
13
5a5574d54988 Touched up source comments, added mdir to Makefile
boisy
parents: 0
diff changeset
43 cmpa #C$SPAC
0
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
44 beq L001E
13
5a5574d54988 Touched up source comments, added mdir to Makefile
boisy
parents: 0
diff changeset
45 cmpa #C$COMA
0
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
46 beq L001E
13
5a5574d54988 Touched up source comments, added mdir to Makefile
boisy
parents: 0
diff changeset
47 cmpa #C$CR
0
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
48 lbeq L0042
13
5a5574d54988 Touched up source comments, added mdir to Makefile
boisy
parents: 0
diff changeset
49 * We've found a file or device name
5a5574d54988 Touched up source comments, added mdir to Makefile
boisy
parents: 0
diff changeset
50 leax -1,x
5a5574d54988 Touched up source comments, added mdir to Makefile
boisy
parents: 0
diff changeset
51 lda #WRITE.
5a5574d54988 Touched up source comments, added mdir to Makefile
boisy
parents: 0
diff changeset
52 ldb #PREAD.+UPDAT.
0
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
53 os9 I$Create
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
54 bcs L0077
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
55 ldb u000E,u
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
56 sta b,y
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
57 incb
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
58 stb u000E,u
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
59 bra L001E
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
60 L0042 stb u000E,u
13
5a5574d54988 Touched up source comments, added mdir to Makefile
boisy
parents: 0
diff changeset
61
5a5574d54988 Touched up source comments, added mdir to Makefile
boisy
parents: 0
diff changeset
62 * Devices on command line are open, start pumping data
0
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
63 L0044 clra
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
64 leax u000F,u
13
5a5574d54988 Touched up source comments, added mdir to Makefile
boisy
parents: 0
diff changeset
65 ldy #256
0
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
66 os9 I$ReadLn
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
67 bcc L0057
13
5a5574d54988 Touched up source comments, added mdir to Makefile
boisy
parents: 0
diff changeset
68 cmpb #E$EOF
0
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
69 beq L0076
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
70 coma
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
71 bra L0077
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
72 L0057 inca
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
73 os9 I$WritLn
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
74 tst u000E,u
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
75 beq L0044
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
76 clrb
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
77 L0060 leay u0001,u
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
78 lda b,y
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
79 leax u000F,u
13
5a5574d54988 Touched up source comments, added mdir to Makefile
boisy
parents: 0
diff changeset
80 ldy #256
0
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
81 os9 I$WritLn
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
82 bcs L0077
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
83 incb
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
84 cmpb u000E,u
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
85 bne L0060
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
86 bra L0044
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
87 L0076 clrb
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
88 L0077 os9 F$Exit
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
89
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
90 emod
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
91 eom equ *
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
92 end