annotate level1/cmds/tsmon.asm @ 1020:c1a5613ffe7b

changes
author boisy
date Thu, 06 Mar 2003 01:41:03 +0000
parents 06b4b630cbaf
children 84ea83668304
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
191
50fae533cfe9 Migrated OS-9 Level Two command
boisy
parents: 129
diff changeset
1 *******************************************************************
0
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
2 * Tsmon - Timesharing monitor
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
3 *
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
4 * $Id$
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
5 *
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
6 * Ed. Comments Who YY/MM/DD
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
7 * ------------------------------------------------------------------
200
e9ce43cc215e Made major changes to headers for consistency and identification
boisy
parents: 191
diff changeset
8 * 8 From Tandy OS-9 Level Two VR 02.00.01
0
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
9
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
10 nam Tsmon
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
11 ttl Timesharing monitor
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
12
191
50fae533cfe9 Migrated OS-9 Level Two command
boisy
parents: 129
diff changeset
13 * Disassembled 02/07/13 23:44:55 by Disasm v1.6 (C) 1988 by RML
0
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
14
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
15 ifp1
129
39de99977f31 Disassembled to Tandy version edition 7
boisy
parents: 0
diff changeset
16 use defsfile
0
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
17 endc
129
39de99977f31 Disassembled to Tandy version edition 7
boisy
parents: 0
diff changeset
18
0
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
19 tylg set Prgrm+Objct
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
20 atrv set ReEnt+rev
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
21 rev set $01
200
e9ce43cc215e Made major changes to headers for consistency and identification
boisy
parents: 191
diff changeset
22 edition set 8
129
39de99977f31 Disassembled to Tandy version edition 7
boisy
parents: 0
diff changeset
23
0
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
24 mod eom,name,tylg,atrv,start,size
129
39de99977f31 Disassembled to Tandy version edition 7
boisy
parents: 0
diff changeset
25
917
06b4b630cbaf Added comments
boisy
parents: 200
diff changeset
26 org 0
06b4b630cbaf Added comments
boisy
parents: 200
diff changeset
27 childid rmb 1
06b4b630cbaf Added comments
boisy
parents: 200
diff changeset
28 parmptr rmb 2
06b4b630cbaf Added comments
boisy
parents: 200
diff changeset
29 parmlen rmb 2
06b4b630cbaf Added comments
boisy
parents: 200
diff changeset
30 inbuff rmb 451
0
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
31 size equ .
129
39de99977f31 Disassembled to Tandy version edition 7
boisy
parents: 0
diff changeset
32
39de99977f31 Disassembled to Tandy version edition 7
boisy
parents: 0
diff changeset
33 name fcs /Tsmon/
200
e9ce43cc215e Made major changes to headers for consistency and identification
boisy
parents: 191
diff changeset
34 fcb edition
129
39de99977f31 Disassembled to Tandy version edition 7
boisy
parents: 0
diff changeset
35
917
06b4b630cbaf Added comments
boisy
parents: 200
diff changeset
36 Login fcc "LOGIN"
06b4b630cbaf Added comments
boisy
parents: 200
diff changeset
37 LoginPrm fcb C$CR
129
39de99977f31 Disassembled to Tandy version edition 7
boisy
parents: 0
diff changeset
38
917
06b4b630cbaf Added comments
boisy
parents: 200
diff changeset
39 IcptRtn rti
129
39de99977f31 Disassembled to Tandy version edition 7
boisy
parents: 0
diff changeset
40
917
06b4b630cbaf Added comments
boisy
parents: 200
diff changeset
41 start stx <parmptr save parameter pointer
06b4b630cbaf Added comments
boisy
parents: 200
diff changeset
42 std <parmlen save parameter length
06b4b630cbaf Added comments
boisy
parents: 200
diff changeset
43 leax <IcptRtn,pcr point to intercept routine
06b4b630cbaf Added comments
boisy
parents: 200
diff changeset
44 os9 F$Icpt and set it
06b4b630cbaf Added comments
boisy
parents: 200
diff changeset
45 L0024 ldx <parmptr get pointer to parameter
06b4b630cbaf Added comments
boisy
parents: 200
diff changeset
46 ldd <parmlen and length
06b4b630cbaf Added comments
boisy
parents: 200
diff changeset
47 cmpd #$0002
191
50fae533cfe9 Migrated OS-9 Level Two command
boisy
parents: 129
diff changeset
48 bcs L0052
917
06b4b630cbaf Added comments
boisy
parents: 200
diff changeset
49 lda ,x get byte at command line
06b4b630cbaf Added comments
boisy
parents: 200
diff changeset
50 cmpa #C$CR cr?
06b4b630cbaf Added comments
boisy
parents: 200
diff changeset
51 beq L0052 if so, branch
06b4b630cbaf Added comments
boisy
parents: 200
diff changeset
52 clra stdin
06b4b630cbaf Added comments
boisy
parents: 200
diff changeset
53 os9 I$Close close it
191
50fae533cfe9 Migrated OS-9 Level Two command
boisy
parents: 129
diff changeset
54 lda #UPDAT.
917
06b4b630cbaf Added comments
boisy
parents: 200
diff changeset
55 os9 I$Open open device on command line
06b4b630cbaf Added comments
boisy
parents: 200
diff changeset
56 bcs Exit branch if error
06b4b630cbaf Added comments
boisy
parents: 200
diff changeset
57 inca A = 1
06b4b630cbaf Added comments
boisy
parents: 200
diff changeset
58 os9 I$Close close stdout
06b4b630cbaf Added comments
boisy
parents: 200
diff changeset
59 inca A = 2
06b4b630cbaf Added comments
boisy
parents: 200
diff changeset
60 os9 I$Close close stderr
06b4b630cbaf Added comments
boisy
parents: 200
diff changeset
61 clra stdin path
06b4b630cbaf Added comments
boisy
parents: 200
diff changeset
62 os9 I$Dup dup to stdout
06b4b630cbaf Added comments
boisy
parents: 200
diff changeset
63 bcs Exit branch if error
06b4b630cbaf Added comments
boisy
parents: 200
diff changeset
64 os9 I$Dup dup to stderr
06b4b630cbaf Added comments
boisy
parents: 200
diff changeset
65 bcs Exit branch if error
06b4b630cbaf Added comments
boisy
parents: 200
diff changeset
66 L0052 clra stdin
06b4b630cbaf Added comments
boisy
parents: 200
diff changeset
67 leax inbuff,u point to buffer
06b4b630cbaf Added comments
boisy
parents: 200
diff changeset
68 ldy #$0001 read 1 byte
06b4b630cbaf Added comments
boisy
parents: 200
diff changeset
69 os9 I$ReadLn read line
06b4b630cbaf Added comments
boisy
parents: 200
diff changeset
70 bcs L0024 branch if error
06b4b630cbaf Added comments
boisy
parents: 200
diff changeset
71 lda #Objct object
06b4b630cbaf Added comments
boisy
parents: 200
diff changeset
72 clrb no additional mem
06b4b630cbaf Added comments
boisy
parents: 200
diff changeset
73 leax <Login,pcr point to login
06b4b630cbaf Added comments
boisy
parents: 200
diff changeset
74 leau <LoginPrm,pcr and to parameters
06b4b630cbaf Added comments
boisy
parents: 200
diff changeset
75 ldy #$0000 parameter size
06b4b630cbaf Added comments
boisy
parents: 200
diff changeset
76 os9 F$Fork fork program
06b4b630cbaf Added comments
boisy
parents: 200
diff changeset
77 bcs L0024 branch if error
06b4b630cbaf Added comments
boisy
parents: 200
diff changeset
78 sta <childid else save process ID of child
06b4b630cbaf Added comments
boisy
parents: 200
diff changeset
79 L0072 os9 F$Wait wait for it to finish
06b4b630cbaf Added comments
boisy
parents: 200
diff changeset
80 cmpa <childid same as PID we forked?
06b4b630cbaf Added comments
boisy
parents: 200
diff changeset
81 bne L0072 if not, wait more
06b4b630cbaf Added comments
boisy
parents: 200
diff changeset
82 bra L0024 else go back
06b4b630cbaf Added comments
boisy
parents: 200
diff changeset
83 Exit os9 F$Exit exit
129
39de99977f31 Disassembled to Tandy version edition 7
boisy
parents: 0
diff changeset
84
0
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
85 emod
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
86 eom equ *
129
39de99977f31 Disassembled to Tandy version edition 7
boisy
parents: 0
diff changeset
87 end