-/* $OpenBSD: fpu_emulate.c,v 1.4 1996/05/29 11:29:30 niklas Exp $ */
+/* $OpenBSD: fpu_emulate.c,v 1.5 1996/09/18 02:09:29 briggs Exp $ */
/* $NetBSD: fpu_emulate.c,v 1.6 1996/05/15 07:31:55 leo Exp $ */
/*
int word1, sig;
int reglist, regmask, regnum;
int fpu_to_mem, order;
- int w1_post_incr; /* XXX - FP regs order? */
+ int w1_post_incr;
int *fpregs;
insn->is_advance = 4;
}
while ((0 <= regnum) && (regnum < 8)) {
- regmask = 1 << regnum;
+ if (w1_post_incr) {
+ regmask = 0x80 >> regnum;
+ } else {
+ regmask = 1 << regnum;
+ }
if (regmask & reglist) {
if (fpu_to_mem) {
sig = fpu_store_ea(frame, insn, &insn->is_ea0,