From 975327dcac4111c421bd5e63056a7ab75b94db81 Mon Sep 17 00:00:00 2001 From: Mark Pizzolato Date: Mon, 30 Mar 2015 16:12:00 -0700 Subject: [PATCH] ECLIPSE: Fixed typo in DIVS from Bob Supnik. Fix: #200 --- NOVA/eclipse_cpu.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/NOVA/eclipse_cpu.c b/NOVA/eclipse_cpu.c index ddc0e788..c2ec12e1 100644 --- a/NOVA/eclipse_cpu.c +++ b/NOVA/eclipse_cpu.c @@ -3,7 +3,7 @@ Modified from the original NOVA simulator by Robert Supnik. Copyright (c) 1998-2012, Charles E Owen - Portions Copyright (c) 1993-2002, Robert M Supnik + Portions Copyright (c) 1993-2015, Robert M Supnik Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), @@ -28,6 +28,7 @@ cpu Eclipse central processor + 30-Mar-15 RMS Fixed typo in DIVS 25-Mar-12 RMS Fixed declarations (Mark Pizzolato) 07-Jun-06 RMS Fixed bug in DIVS (Mark Hittinger) 22-Sep-05 RMS Fixed declarations (Sterling Garwood) @@ -1659,7 +1660,7 @@ if ((IR & 0100017) == 0100010) { /* This pattern for all continue; } if (IR == 0157710) { /* DIVS: Signed Divide */ - if ((AC[0] == 0) || + if ((AC[2] == 0) || ((AC[0] == 0100000) && (AC[1] == 0) && (AC[2] == 0177777))) C = 0200000; else {