From 6c7da6c68b737461c2ecdc91a39cf088f79d30e7 Mon Sep 17 00:00:00 2001 From: Mark Pizzolato Date: Wed, 1 May 2019 04:55:36 -0700 Subject: [PATCH] Chip Based VAXes: Fix CIS and EMULATED instruction implemented test --- VAX/vax_cis.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/VAX/vax_cis.c b/VAX/vax_cis.c index 186e5409..3b9a450a 100644 --- a/VAX/vax_cis.c +++ b/VAX/vax_cis.c @@ -107,10 +107,10 @@ t_stat r; DSTR accum, src1, src2, dst; DSTR mptable[10]; -if (((IG_PACKD == DR_GETIGRP(drom[opc][0])) && - (cpu_instruction_set & VAX_PACKED)) || - ((IG_EMONL == DR_GETIGRP(drom[opc][0])) && - (cpu_instruction_set & VAX_EMONL))) { /* Emulated? */ +if (((DR_GETIGRP(IG_PACKD) == DR_GETIGRP(drom[opc][0])) && + (!(cpu_instruction_set & VAX_PACKED))) || + ((DR_GETIGRP(IG_EMONL) == DR_GETIGRP(drom[opc][0])) && + (!(cpu_instruction_set & VAX_EMONL)))) { /* Emulated? */ /* CIS and emulate only instructions - invoke emulator interface opnd[0:5] = six operands to be pushed (if PSL = 0) cc = condition codes