a7out: I had the spa logic wrong. Now fixed.
This commit is contained in:
+2
-1
@@ -228,7 +228,8 @@ sub special {
|
|||||||
}
|
}
|
||||||
if ( $instruction == 0741100 ) { # spa: skip on positive AC
|
if ( $instruction == 0741100 ) { # spa: skip on positive AC
|
||||||
printf( STDERR "PC %06o: spa AC %06o\n", $PC, $AC ) if ($debug);
|
printf( STDERR "PC %06o: spa AC %06o\n", $PC, $AC ) if ($debug);
|
||||||
$PC += ( $AC >= 0 ) ? 2 : 1;
|
# Because we are dealing with 18 bits, compare the range
|
||||||
|
$PC += ( ($AC >= 0) && ($AC < 0400000) ) ? 2 : 1;
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
if ( $instruction == 0741200 ) { # sna: skip on non-zero AC
|
if ( $instruction == 0741200 ) { # sna: skip on non-zero AC
|
||||||
|
|||||||
Reference in New Issue
Block a user