1
0
mirror of https://github.com/livingcomputermuseum/pdp7-unix.git synced 2026-05-01 05:58:56 +00:00

add tmg to src/cmd and image

add doug user to image, put tmg sources there
fix an as7 bug found by tmg
This commit is contained in:
phil
2019-10-28 22:46:48 -04:00
parent ab38b0e263
commit 4ffabd8bdf
11 changed files with 1336 additions and 2 deletions

View File

@@ -294,7 +294,7 @@ sub set_label
# An error to have different values
if ( defined( $Glabel{$label} ) && $Glabel{$label} != $loc ) {
# non-fatal: as.s doesn't even warn!!!!
print STDERR "$file:$lineno: Global label $label multiply defined\n"
print STDERR "$file:$lineno: NOTE: Global label $label multiply defined (not an error)\n"
if ($stage == 2);
}
else {
@@ -398,7 +398,7 @@ sub parse_line {
return if (eol());
if ( $line =~ s{^(\S+)\s*=}{}) { # assignment
if ( $line =~ s{^([^;= \t]+)\s*=}{}) { # assignment
my $lhs = $1;
my $word = parse_expression();
printf( "Setting variable %s to 0%o\n", $lhs, $word ) if ($debug);