From 434c1994d682c32735f8702dc1fbcb60d7afe8c7 Mon Sep 17 00:00:00 2001 From: Toni Wilen Date: Tue, 2 Jun 2015 20:06:16 +0300 Subject: [PATCH] 6888x NULL frame undocumented feature. --- fpp.cpp | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/fpp.cpp b/fpp.cpp index ff254d55..715570be 100644 --- a/fpp.cpp +++ b/fpp.cpp @@ -2159,8 +2159,9 @@ void fpuop_save (uae_u32 opcode) ad -= frame_size; } } else { /* 68881/68882 */ - int frame_size = regs.fpu_state == 0 ? 0 : currprefs.fpu_model == 68882 ? 0x3c : 0x1c; - uae_u32 frame_id = regs.fpu_state == 0 ? 0x18 << 16 : (fpu_version << 24) | ((frame_size - 4) << 16); + int frame_size_real = currprefs.fpu_model == 68882 ? 0x3c : 0x1c;; + int frame_size = regs.fpu_state == 0 ? 0 : frame_size_real; + uae_u32 frame_id = regs.fpu_state == 0 ? ((frame_size_real - 4) << 16) : (fpu_version << 24) | ((frame_size_real - 4) << 16); if (currprefs.mmu_model) { if (incr < 0) { -- 2.47.3