mirror of
https://github.com/DoctorWkt/pdp7-unix.git
synced 2026-02-07 17:01:39 +00:00
Added a dprintf which I forgot.
This commit is contained in:
@@ -489,6 +489,7 @@ sub eae {
|
||||
|
||||
if ( $instruction == 0653323 ) { # idiv: integer division
|
||||
my $divisor= $Mem[ $PC+1 ];
|
||||
dprintf( "div AC %06o AC by %06o (decimal %d by %d)\n", $AC, $divisor, $AC, $divisor );
|
||||
# Prevent division by zero :-)
|
||||
my $quotient = ($divisor) ? $AC / $divisor : 0;
|
||||
my $remainder = ($divisor) ? $AC % $divisor : 0;
|
||||
|
||||
Reference in New Issue
Block a user