This commit is contained in:
Tom Everett
2016-03-06 10:34:46 -07:00
2 changed files with 11 additions and 8 deletions
+10 -7
View File
@@ -28,6 +28,8 @@ newcom:
dzm argv0 " clear out argv0 for chdir comparison dzm argv0 " clear out argv0 for chdir comparison
dzm argv0+1 dzm argv0+1
dzm argv0+2 dzm argv0+2
lac argcptr
dac argptr
lac iopt " reset output pointer lac iopt " reset output pointer
dac opt dac opt
dac nextarg dac nextarg
@@ -106,7 +108,9 @@ eoname:
sza sza
jmp 1f " last name was a redirect file, skip increment jmp 1f " last name was a redirect file, skip increment
isz argc " increment argc lac argc " increment argc
tad d4
dac argc
lac nextarg lac nextarg
tad d4 " advance nextarg tad d4 " advance nextarg
dac nextarg dac nextarg
@@ -242,19 +246,16 @@ error: " here for error in child: filename pointer in AC
lac d1; sys write; qmsp; 1 lac d1; sys write; qmsp; 1
lac d1; sys write; 1: 0; 4 lac d1; sys write; 1: 0; 4
lac d1; sys write; nl; 1 lac d1; sys write; nl; 1
" XXX smes to parent???
lac d2; sys close lac d2; sys close
sys exit sys exit
" end code from init.s " end code from init.s
" ================ " ================
" here in parent, child pid in AC
parent: parent:
dac pid " sys smes " hangs until child exits
1: sys rmes jmp newline
sad pid
jmp newline
jmp 1b
" chdir command: " chdir command:
changedir: changedir:
@@ -389,6 +390,8 @@ outfilep: outfile
outfile: .=.+4 " buffer for output redirect file name outfile: .=.+4 " buffer for output redirect file name
infile: .=.+4 " buffer for input redirect file name infile: .=.+4 " buffer for input redirect file name
argcptr: argc
" leave room for maxargs items of 4 words each " leave room for maxargs items of 4 words each
maxargs=8 maxargs=8
+1 -1
View File
@@ -213,7 +213,7 @@ elsif ($format eq 'list') {
dump_labels($OUT); dump_labels($OUT);
} }
elsif ($format eq 'ptr') { # dump absolute memory in PTR binary elsif ($format eq 'ptr') { # dump absolute memory in PTR binary
for my $loc ( 0 .. $#Mem ) { for my $loc ( $Var{'..'} .. $#Mem ) {
punch($Mem[$loc] || 0); punch($Mem[$loc] || 0);
} }
} }