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