From 8c849f20f7fd3d69819fa4f78a62f26ae4f4fc02 Mon Sep 17 00:00:00 2001 From: ceriel Date: Wed, 10 Nov 1993 13:00:01 +0000 Subject: [PATCH] Fix: CSA was not quite right --- util/int/do_misc.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/util/int/do_misc.c b/util/int/do_misc.c index b94fa00fe..f558b8372 100644 --- a/util/int/do_misc.c +++ b/util/int/do_misc.c @@ -436,6 +436,9 @@ PRIVATE index_jump(nbytes) if (t_index >= 0 && t_index <= mem_lds(cdp + nbytes + psize, nbytes)) { nPC = mem_ldip(cdp + (2 * nbytes) + ((t_index + 1) * psize)); + if (nPC == 0) { + trap(ECASE); + } } else if ((nPC = mem_ldip(cdp)) == 0) { trap(ECASE); -- 2.34.1