annotate level1/cmds/tsmon.asm @ 1748:949d4df97cca

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