1
0
mirror of https://github.com/DoctorWkt/pdp7-unix.git synced 2026-02-17 21:27:43 +00:00

I've restructured the alternative version of PDP-7 Unix so that the

source code is now in src/alt. All the files in src/sys and src/cmd
are only annotated versions of the files in scans/.
The build/Makefile has been updated so that it can build the
original PDP-7 Unix or the alternative version.
Phil has fixed the Graphics-2 code, so that there is no need to
have any #ifdef code in the original kernel.
This commit is contained in:
Warren Toomey
2016-03-21 16:01:36 +10:00
parent f63ad33d10
commit 94fd5d49e0
9 changed files with 22 additions and 162 deletions

View File

@@ -6,11 +6,6 @@
" sys status; dir_name_ptr; file_name_ptr
" NO_DD version: sys status; file_name_ptr
.status:
#ifdef NO_DD
jms arg " fetch file name pointer
dac .+3
lac u.cdir " get current working directory
#else
jms arg " fetch directory name pointer
dac .+5
jms arg " fetch file name pointer
@@ -18,7 +13,6 @@
lac u.cdir " get current working directory
jms namei; .. " look up source directory
jms error " not found: return error to user
#endif
jms namei; .. " look up file
jms error " not found: return error
jms iget " read file inode
@@ -110,11 +104,7 @@
dac 1f
jms arg
dac 2f
#ifdef NO_DD
lac u.cdir " Search the current directory
#else
lac d4 " Search the directory at i-num 4
#endif
jms namei; 0:0 " for the first argument
jms error " Didn't find it
jms namei; 1:0 " In the i-num found by 1st namei,