From 3cb6bf7818b30b5501abf49022451e10fcd499f0 Mon Sep 17 00:00:00 2001 From: Jeff Law Date: Fri, 30 Aug 1996 05:49:07 +0000 Subject: * interp.c (do_format_4): Get operands correctly and call the target function. * simops.c: Rough cut at "sld.b", "sld.h", "sld.w", "sst.b", "sst.h", and "sst.w". --- sim/v850/interp.c | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'sim/v850/interp.c') diff --git a/sim/v850/interp.c b/sim/v850/interp.c index fbd808d..d47a109 100644 --- a/sim/v850/interp.c +++ b/sim/v850/interp.c @@ -154,7 +154,13 @@ static void do_format_4 (insn) uint32 insn; { + struct hash_entry *h; printf("format 4 0x%x\n", insn); + + h = lookup_hash (insn); + OP[0] = (insn >> 11) & 0x1f; + OP[1] = (insn & 0x7f); + (h->ops->func) (); } static void -- cgit v1.1