1
0
mirror of https://github.com/DoctorWkt/pdp7-unix.git synced 2026-04-15 16:19:44 +00:00

update queue (and other) storage comments

This commit is contained in:
Phil Budne
2016-04-15 00:52:09 -04:00
parent 032dc37705
commit cb187e12be

View File

@@ -95,22 +95,23 @@ dm1: -1
9: .=.+t " per-routine temp variables
c1: .=.+1 " not used?
q1: q2;q2+98 " ** 90? 96?? " queue element free list?
.=.+14
" queues (two words each, head and tail pointers?)
" character queues (two words each, head and tail pointers?)
" 0: free list
" 1: tty input
" 2: tty output
" 3: display keyboard
" 4: paper tape reader
" 5: paper tape punch
q2:
q1: q2;q2+98 " queue element free list
.=.+14 " room for 7 queues (5 used)
q2: " queue elements (and two words padding??)
.+2;0;.+2;0;.+2;0;.+2;0;.+2;0;.+2;0;.+2;0;.+2;0;.+2;0;.+2;0
.+2;0;.+2;0;.+2;0;.+2;0;.+2;0;.+2;0;.+2;0;.+2;0;.+2;0;.+2;0
.+2;0;.+2;0;.+2;0;.+2;0;.+2;0;.+2;0;.+2;0;.+2;0;.+2;0;.+2;0
.+2;0;.+2;0;.+2;0;.+2;0;.+2;0;.+2;0;.+2;0;.+2;0;.+2;0;.+2;0
.+2;0;.+2;0;.+2;0;.+2;0;.+2;0;.+2;0;.+2;0;.+2;0;.+2;0;0;0
dsploc: .=.+1
dsplno: .=.+1
dsploc: .=.+1 " pointer into dspbuf
dsplno: .=.+1 " display current line number
dspbuf:
0065057;0147740;0160000 " display commands: see 03-scope.pdf pg 20
" PARAM: clear blink, clear light pen, scale=1, intensity=3
@@ -157,18 +158,19 @@ dskaddr: .=.+1 " number of block in dskbuf
uniqpid: 1 " pid generator
lu: .=.+4 " user (process) table entry copy
sfiles: .=.+10 " wait addresses for special files
" (bit vector of waiting processes?)
" (bit vectors of waiting processes?)
" bit zero (MSB) is special, bit 1 first ulist entry, ....
" offsets: 0: ttyin, 1: ttyout, 2: keyboard,
" 3: ptr, 4: ptp, 6: display
dpdata:
dpdata: " dataphone data
dpstat: .=.+1
dpread: .=.+1
dpwrite: .=.+1
dpchar: .=.+1
dspdata:
dspdata: " display data
.dspb: .=.+1
.lpba: .=.+1 "** 4 written on listing
crdata:
crdata: " card reader data
crread: .=.+1
crchar: .=.+1
sysdata: " system data 64 words saved to disk
@@ -177,7 +179,7 @@ sysdata: " system data 64 words saved to disk
s.fblks: .=.+10 " cached free block numbers
s.uniq: .=.+1 " next unique value
s.tim: .=.+2 " (up?)time in 60Hz ticks (low, high)
" process table
" user (process) table
" first word
" bits 0:2 -- status
" 0: free slot
@@ -188,7 +190,7 @@ sysdata: " system data 64 words saved to disk
" bits 3:17 -- disk swap address/8
" second word: process pid
" third word: smes/rmes status:
" 0: not waiting
" 0: not waiting
" -1: this process waiting (rmes)
" other: complement of sender pid
" fourth word: smes message
@@ -243,7 +245,7 @@ dnode: " directory entry:
d.name: .=.+4 " name (space padded)
d.uniq: .=.+1 " unique number from directory inode
. = dnode+8
fnode: " open file entry
fnode: " open file entry (copied from u.ofiles)
f.flags: .=.+1 " see below
f.badd: .=.+1 " offset
f.i: 0 " file i-number