96
|
1 ********************************************************************
|
|
2 * Iniz - Initialize a device
|
|
3 *
|
|
4 * $Id$
|
|
5 *
|
|
6 * Ed. Comments Who YY/MM/DD
|
|
7 * ------------------------------------------------------------------
|
189
|
8 * 3 Original Tandy/Microware version
|
96
|
9
|
|
10 nam Iniz
|
|
11 ttl Initialize a device
|
|
12
|
189
|
13 * Disassembled 98/09/10 22:56:37 by Disasm v1.6 (C) 1988 by RML
|
96
|
14
|
|
15 ifp1
|
|
16 use defsfile
|
|
17 endc
|
|
18
|
|
19 tylg set Prgrm+Objct
|
|
20 atrv set ReEnt+rev
|
|
21 rev set $01
|
189
|
22 edition set 3
|
96
|
23
|
|
24 mod eom,name,tylg,atrv,start,size
|
|
25 u0000 rmb 2
|
|
26 u0002 rmb 330
|
|
27 size equ .
|
|
28
|
|
29 name fcs /Iniz/
|
189
|
30 fcb edition
|
96
|
31
|
|
32 start lda ,x
|
|
33 cmpa #C$CR
|
|
34 beq L001E
|
|
35 bsr L003F
|
|
36 bra L002E
|
|
37 L001C bsr L003F
|
|
38 L001E bsr L0032
|
|
39 bcs L002A
|
|
40 lda ,x
|
|
41 cmpa #C$CR
|
|
42 bne L001C
|
|
43 ldb #E$EOF
|
|
44 L002A cmpb #E$EOF
|
|
45 bne L002E
|
|
46 L002E clrb
|
|
47 os9 F$Exit
|
|
48 L0032 clra
|
|
49 leax u0002,u
|
|
50 ldy #80
|
|
51 os9 I$ReadLn
|
|
52 bcc L003E
|
|
53 L003E rts
|
189
|
54 L003F lda #C$SPAC
|
|
55 L0041 cmpa ,x+
|
|
56 beq L0041
|
|
57 leax -$01,x
|
|
58 stx <u0000
|
|
59 lda #PDELIM
|
|
60 cmpa ,x
|
|
61 bne L0051
|
|
62 leax 1,x
|
|
63 L0051 clra
|
96
|
64 os9 I$Attach
|
189
|
65 bcs L0064
|
96
|
66 lda ,x+
|
189
|
67 cmpa #C$COMA
|
96
|
68 beq L003F
|
|
69 lda ,-x
|
|
70 cmpa #C$CR
|
|
71 bne L003F
|
|
72 rts
|
189
|
73 L0064 pshs b
|
96
|
74 lda #$02
|
|
75 ldx <u0000
|
|
76 ldy #80
|
|
77 os9 I$WritLn
|
|
78 puls b
|
|
79 os9 F$PErr
|
|
80 rts
|
|
81
|
|
82 emod
|
|
83 eom equ *
|
|
84 end
|