annotate level1/cmds/deiniz.asm @ 239:8b71b12c468f

Checking in the floppy disk device descriptors for Dragon 64
author roug
date Thu, 18 Jul 2002 19:53:53 +0000
parents 6a8f855fb173
children 064244c52232
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
237
6a8f855fb173 Moved from level2/CMDS
boisy
parents:
diff changeset
1 ********************************************************************
6a8f855fb173 Moved from level2/CMDS
boisy
parents:
diff changeset
2 * DeIniz - Deinitialize a device
6a8f855fb173 Moved from level2/CMDS
boisy
parents:
diff changeset
3 *
6a8f855fb173 Moved from level2/CMDS
boisy
parents:
diff changeset
4 * $Id$
6a8f855fb173 Moved from level2/CMDS
boisy
parents:
diff changeset
5 *
6a8f855fb173 Moved from level2/CMDS
boisy
parents:
diff changeset
6 * Ed. Comments Who YY/MM/DD
6a8f855fb173 Moved from level2/CMDS
boisy
parents:
diff changeset
7 * ------------------------------------------------------------------
6a8f855fb173 Moved from level2/CMDS
boisy
parents:
diff changeset
8 * 3 From OS-9 Level Two Vr. 2.00.01
6a8f855fb173 Moved from level2/CMDS
boisy
parents:
diff changeset
9
6a8f855fb173 Moved from level2/CMDS
boisy
parents:
diff changeset
10 nam DeIniz
6a8f855fb173 Moved from level2/CMDS
boisy
parents:
diff changeset
11 ttl Deinitialize a device
6a8f855fb173 Moved from level2/CMDS
boisy
parents:
diff changeset
12
6a8f855fb173 Moved from level2/CMDS
boisy
parents:
diff changeset
13 * Disassembled 98/09/10 22:57:23 by Disasm v1.6 (C) 1988 by RML
6a8f855fb173 Moved from level2/CMDS
boisy
parents:
diff changeset
14
6a8f855fb173 Moved from level2/CMDS
boisy
parents:
diff changeset
15 ifp1
6a8f855fb173 Moved from level2/CMDS
boisy
parents:
diff changeset
16 use defsfile
6a8f855fb173 Moved from level2/CMDS
boisy
parents:
diff changeset
17 endc
6a8f855fb173 Moved from level2/CMDS
boisy
parents:
diff changeset
18
6a8f855fb173 Moved from level2/CMDS
boisy
parents:
diff changeset
19 tylg set Prgrm+Objct
6a8f855fb173 Moved from level2/CMDS
boisy
parents:
diff changeset
20 atrv set ReEnt+rev
6a8f855fb173 Moved from level2/CMDS
boisy
parents:
diff changeset
21 rev set $01
6a8f855fb173 Moved from level2/CMDS
boisy
parents:
diff changeset
22 edition set 3
6a8f855fb173 Moved from level2/CMDS
boisy
parents:
diff changeset
23
6a8f855fb173 Moved from level2/CMDS
boisy
parents:
diff changeset
24 mod eom,name,tylg,atrv,start,size
6a8f855fb173 Moved from level2/CMDS
boisy
parents:
diff changeset
25 u0000 rmb 2
6a8f855fb173 Moved from level2/CMDS
boisy
parents:
diff changeset
26 u0002 rmb 330
6a8f855fb173 Moved from level2/CMDS
boisy
parents:
diff changeset
27 size equ .
6a8f855fb173 Moved from level2/CMDS
boisy
parents:
diff changeset
28
6a8f855fb173 Moved from level2/CMDS
boisy
parents:
diff changeset
29 name fcs /DeIniz/
6a8f855fb173 Moved from level2/CMDS
boisy
parents:
diff changeset
30 fcb edition
6a8f855fb173 Moved from level2/CMDS
boisy
parents:
diff changeset
31
6a8f855fb173 Moved from level2/CMDS
boisy
parents:
diff changeset
32 start lda ,x
6a8f855fb173 Moved from level2/CMDS
boisy
parents:
diff changeset
33 cmpa #C$CR
6a8f855fb173 Moved from level2/CMDS
boisy
parents:
diff changeset
34 beq L0020
6a8f855fb173 Moved from level2/CMDS
boisy
parents:
diff changeset
35 bsr L0041
6a8f855fb173 Moved from level2/CMDS
boisy
parents:
diff changeset
36 bra L0030
6a8f855fb173 Moved from level2/CMDS
boisy
parents:
diff changeset
37 L001E bsr L0041
6a8f855fb173 Moved from level2/CMDS
boisy
parents:
diff changeset
38 L0020 bsr L0034
6a8f855fb173 Moved from level2/CMDS
boisy
parents:
diff changeset
39 bcs L002C
6a8f855fb173 Moved from level2/CMDS
boisy
parents:
diff changeset
40 lda ,x
6a8f855fb173 Moved from level2/CMDS
boisy
parents:
diff changeset
41 cmpa #C$CR
6a8f855fb173 Moved from level2/CMDS
boisy
parents:
diff changeset
42 bne L001E
6a8f855fb173 Moved from level2/CMDS
boisy
parents:
diff changeset
43 ldb #E$EOF
6a8f855fb173 Moved from level2/CMDS
boisy
parents:
diff changeset
44 L002C cmpb #E$EOF
6a8f855fb173 Moved from level2/CMDS
boisy
parents:
diff changeset
45 bne L0030
6a8f855fb173 Moved from level2/CMDS
boisy
parents:
diff changeset
46 L0030 clrb
6a8f855fb173 Moved from level2/CMDS
boisy
parents:
diff changeset
47 os9 F$Exit
6a8f855fb173 Moved from level2/CMDS
boisy
parents:
diff changeset
48 L0034 clra
6a8f855fb173 Moved from level2/CMDS
boisy
parents:
diff changeset
49 leax u0002,u
6a8f855fb173 Moved from level2/CMDS
boisy
parents:
diff changeset
50 ldy #80
6a8f855fb173 Moved from level2/CMDS
boisy
parents:
diff changeset
51 os9 I$ReadLn
6a8f855fb173 Moved from level2/CMDS
boisy
parents:
diff changeset
52 bcc L0040
6a8f855fb173 Moved from level2/CMDS
boisy
parents:
diff changeset
53 L0040 rts
6a8f855fb173 Moved from level2/CMDS
boisy
parents:
diff changeset
54 L0041 lda #C$SPAC
6a8f855fb173 Moved from level2/CMDS
boisy
parents:
diff changeset
55 L0043 cmpa ,x+
6a8f855fb173 Moved from level2/CMDS
boisy
parents:
diff changeset
56 beq L0043
6a8f855fb173 Moved from level2/CMDS
boisy
parents:
diff changeset
57 leax -1,x
6a8f855fb173 Moved from level2/CMDS
boisy
parents:
diff changeset
58 stx <u0000
6a8f855fb173 Moved from level2/CMDS
boisy
parents:
diff changeset
59 lda #PDELIM
6a8f855fb173 Moved from level2/CMDS
boisy
parents:
diff changeset
60 cmpa ,x
6a8f855fb173 Moved from level2/CMDS
boisy
parents:
diff changeset
61 bne L0053
6a8f855fb173 Moved from level2/CMDS
boisy
parents:
diff changeset
62 leax 1,x
6a8f855fb173 Moved from level2/CMDS
boisy
parents:
diff changeset
63 L0053 clra
6a8f855fb173 Moved from level2/CMDS
boisy
parents:
diff changeset
64 os9 I$Attach
6a8f855fb173 Moved from level2/CMDS
boisy
parents:
diff changeset
65 bcs L0070
6a8f855fb173 Moved from level2/CMDS
boisy
parents:
diff changeset
66 os9 I$Detach
6a8f855fb173 Moved from level2/CMDS
boisy
parents:
diff changeset
67 bcs L0070
6a8f855fb173 Moved from level2/CMDS
boisy
parents:
diff changeset
68 os9 I$Detach
6a8f855fb173 Moved from level2/CMDS
boisy
parents:
diff changeset
69 bcs L0070
6a8f855fb173 Moved from level2/CMDS
boisy
parents:
diff changeset
70 lda ,x+
6a8f855fb173 Moved from level2/CMDS
boisy
parents:
diff changeset
71 cmpa #C$COMA
6a8f855fb173 Moved from level2/CMDS
boisy
parents:
diff changeset
72 beq L0041
6a8f855fb173 Moved from level2/CMDS
boisy
parents:
diff changeset
73 lda ,-x
6a8f855fb173 Moved from level2/CMDS
boisy
parents:
diff changeset
74 cmpa #C$CR
6a8f855fb173 Moved from level2/CMDS
boisy
parents:
diff changeset
75 bne L0041
6a8f855fb173 Moved from level2/CMDS
boisy
parents:
diff changeset
76 rts
6a8f855fb173 Moved from level2/CMDS
boisy
parents:
diff changeset
77 L0070 pshs b
6a8f855fb173 Moved from level2/CMDS
boisy
parents:
diff changeset
78 lda #$02
6a8f855fb173 Moved from level2/CMDS
boisy
parents:
diff changeset
79 ldx <u0000
6a8f855fb173 Moved from level2/CMDS
boisy
parents:
diff changeset
80 ldy #80
6a8f855fb173 Moved from level2/CMDS
boisy
parents:
diff changeset
81 os9 I$WritLn
6a8f855fb173 Moved from level2/CMDS
boisy
parents:
diff changeset
82 puls b
6a8f855fb173 Moved from level2/CMDS
boisy
parents:
diff changeset
83 os9 F$PErr
6a8f855fb173 Moved from level2/CMDS
boisy
parents:
diff changeset
84 rts
6a8f855fb173 Moved from level2/CMDS
boisy
parents:
diff changeset
85
6a8f855fb173 Moved from level2/CMDS
boisy
parents:
diff changeset
86 emod
6a8f855fb173 Moved from level2/CMDS
boisy
parents:
diff changeset
87 eom equ *
6a8f855fb173 Moved from level2/CMDS
boisy
parents:
diff changeset
88 end