Skip to content

Commit

Permalink
Allow ffreep on the whole FPU stack
Browse files Browse the repository at this point in the history
  • Loading branch information
tbodt committed Jan 13, 2020
1 parent babb5ef commit 9c52840
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion emu/decode.h
Original file line number Diff line number Diff line change
Expand Up @@ -705,6 +705,7 @@ __no_instrument DECODER_RET glue(DECODER_NAME, OP_SIZE)(DECODER_ARGS) {
case 0xde5: TRACE("fsubp st, st(i)"); FSUB(st_0, st_i); FPOP; break;
case 0xde6: TRACE("fdivrp st, st(i)"); FDIVR(st_0, st_i); FPOP; break;
case 0xde7: TRACE("fdivp st, st(i)"); FDIV(st_0, st_i); FPOP; break;
case 0xdf0: TRACE("ffreep st(i) (omegalul)"); FPOP; break;
case 0xdf5: TRACE("fucomip st"); FUCOMI(); FPOP; break;
case 0xdf6: TRACE("fcomip st"); FCOMI(); FPOP; break;
default: switch (insn << 8 | modrm.opcode << 4 | modrm.rm_opcode) {
Expand All @@ -730,7 +731,6 @@ __no_instrument DECODER_RET glue(DECODER_NAME, OP_SIZE)(DECODER_ARGS) {
case 0xd976: TRACE("fsin"); FSIN(); break;
case 0xd977: TRACE("fcos"); FCOS(); break;
case 0xde31: TRACE("fcompp"); FCOM(); FPOP; FPOP; break;
case 0xdf00: TRACE("ffreep st(i) (omegalul)"); FPOP; break;
case 0xdf40: TRACE("fnstsw ax"); FSTSW(reg_a); break;
default: TRACE("undefined"); UNDEFINED;
}}
Expand Down

0 comments on commit 9c52840

Please sign in to comment.