Mercurial > hg > Members > kono > nitros9-code
annotate level1/cmds/deiniz.asm @ 1347:89572d423498
Made case fixes
author | boisy |
---|---|
date | Wed, 17 Sep 2003 17:40:49 +0000 |
parents | 84ea83668304 |
children |
rev | line source |
---|---|
237 | 1 ******************************************************************** |
828 | 2 * DeIniz - Denitialize a device |
237 | 3 * |
4 * $Id$ | |
5 * | |
1325
84ea83668304
Redid comments, reset all rev nibbles that weren't explictly set to 0
boisy
parents:
924
diff
changeset
|
6 * Edt/Rev YYYY/MM/DD Modified by |
84ea83668304
Redid comments, reset all rev nibbles that weren't explictly set to 0
boisy
parents:
924
diff
changeset
|
7 * Comment |
237 | 8 * ------------------------------------------------------------------ |
1325
84ea83668304
Redid comments, reset all rev nibbles that weren't explictly set to 0
boisy
parents:
924
diff
changeset
|
9 * 3 ????/??/?? |
84ea83668304
Redid comments, reset all rev nibbles that weren't explictly set to 0
boisy
parents:
924
diff
changeset
|
10 * From Tandy OS-9 Level Two VR 02.00.01. |
84ea83668304
Redid comments, reset all rev nibbles that weren't explictly set to 0
boisy
parents:
924
diff
changeset
|
11 * |
84ea83668304
Redid comments, reset all rev nibbles that weren't explictly set to 0
boisy
parents:
924
diff
changeset
|
12 * 4 2003/01/13 Boisy G. Pitre |
84ea83668304
Redid comments, reset all rev nibbles that weren't explictly set to 0
boisy
parents:
924
diff
changeset
|
13 * Tightened code, changed behavior slightly. |
237 | 14 |
15 nam DeIniz | |
16 ttl Deinitialize a device | |
17 | |
828 | 18 * Disassembled 98/09/10 22:56:37 by Disasm v1.6 (C) 1988 by RML |
237 | 19 |
20 ifp1 | |
21 use defsfile | |
22 endc | |
23 | |
924 | 24 linebsiz equ 80 |
25 | |
237 | 26 tylg set Prgrm+Objct |
27 atrv set ReEnt+rev | |
1325
84ea83668304
Redid comments, reset all rev nibbles that weren't explictly set to 0
boisy
parents:
924
diff
changeset
|
28 rev set $00 |
828 | 29 edition set 4 |
30 | |
237 | 31 mod eom,name,tylg,atrv,start,size |
828 | 32 |
33 org 0 | |
830 | 34 rbuffer rmb linebsiz+1 |
828 | 35 stack rmb 64 |
237 | 36 size equ . |
37 | |
38 name fcs /DeIniz/ | |
39 fcb edition | |
40 | |
828 | 41 start lda ,x get command line char |
42 cmpa #C$CR CR? | |
43 beq ReadnDnz branch if so | |
44 DenizDev lda ,x+ | |
237 | 45 cmpa #C$CR |
828 | 46 beq ExitOk |
47 cmpa #C$SPAC | |
48 beq DenizDev | |
49 cmpa #PDELIM pathlist? | |
50 beq DetachIt | |
51 leax -1,x else back up X | |
52 DetachIt clra | |
53 os9 I$Attach attach to the device at X | |
54 bcs Exit branch if error | |
55 os9 I$Detach now detatch from the device at U | |
56 bcs Exit branch if error | |
57 os9 I$Detach and detatch again from the device at U | |
58 bcs Exit branch if error | |
59 bra DenizDev | |
60 | |
61 ReadnDnz clra from stdin | |
830 | 62 leax rbuffer,u point to read buffer |
829
a114971abd3b
Changed the name of a def because it collided with Level 2
boisy
parents:
828
diff
changeset
|
63 ldy #linebsiz get linebsiz bytes |
828 | 64 os9 I$ReadLn read it! |
65 bcc DenizDev branch if error | |
66 cmpb #E$EOF end of file? | |
67 bne Exit branch if not | |
68 ExitOk clrb | |
69 Exit os9 F$Exit | |
237 | 70 |
71 emod | |
72 eom equ * | |
73 end |