Mercurial > hg > Members > kono > nitros9-code
annotate level1/cmds/iniz.asm @ 829:a114971abd3b
Changed the name of a def because it collided with Level 2
author | boisy |
---|---|
date | Tue, 14 Jan 2003 03:06:30 +0000 |
parents | 6653afab1671 |
children | 80e125a9357d |
rev | line source |
---|---|
96 | 1 ******************************************************************** |
2 * Iniz - Initialize a device | |
3 * | |
4 * $Id$ | |
5 * | |
6 * Ed. Comments Who YY/MM/DD | |
7 * ------------------------------------------------------------------ | |
200
e9ce43cc215e
Made major changes to headers for consistency and identification
boisy
parents:
189
diff
changeset
|
8 * 3 From Tandy OS-9 Level Two VR 02.00.01 |
827 | 9 * 4 Tightened code, changed behavior slightly BGP 03/01/13 |
96 | 10 |
11 nam Iniz | |
12 ttl Initialize a device | |
13 | |
189 | 14 * Disassembled 98/09/10 22:56:37 by Disasm v1.6 (C) 1988 by RML |
96 | 15 |
16 ifp1 | |
17 use defsfile | |
18 endc | |
19 | |
20 tylg set Prgrm+Objct | |
21 atrv set ReEnt+rev | |
22 rev set $01 | |
827 | 23 edition set 4 |
24 | |
829
a114971abd3b
Changed the name of a def because it collided with Level 2
boisy
parents:
827
diff
changeset
|
25 linebsiz equ 80 |
96 | 26 |
27 mod eom,name,tylg,atrv,start,size | |
826 | 28 |
29 org 0 | |
829
a114971abd3b
Changed the name of a def because it collided with Level 2
boisy
parents:
827
diff
changeset
|
30 readbuf rmb linebsiz+1 |
827 | 31 stack rmb 64 |
96 | 32 size equ . |
33 | |
34 name fcs /Iniz/ | |
189 | 35 fcb edition |
96 | 36 |
826 | 37 start lda ,x get command line char |
38 cmpa #C$CR CR? | |
39 beq ReadnInz branch if so | |
827 | 40 InizDev lda ,x+ |
96 | 41 cmpa #C$CR |
827 | 42 beq ExitOk |
43 cmpa #C$SPAC | |
44 beq InizDev | |
45 cmpa #PDELIM pathlist? | |
46 beq AttachIt | |
47 leax -1,x else back up X | |
48 AttachIt clra | |
49 os9 I$Attach attach to the device at X | |
50 bcs Exit branch if error | |
51 bra InizDev | |
826 | 52 |
827 | 53 ReadnInz clra from stdin |
54 leax readbuf,u point to read buffer | |
829
a114971abd3b
Changed the name of a def because it collided with Level 2
boisy
parents:
827
diff
changeset
|
55 ldy #linebsiz get linebsiz bytes |
827 | 56 os9 I$ReadLn read it! |
57 bcc InizDev branch if error | |
58 cmpb #E$EOF end of file? | |
59 bne Exit branch if not | |
60 ExitOk clrb | |
61 Exit os9 F$Exit | |
96 | 62 |
63 emod | |
64 eom equ * | |
65 end |