Skip to content

Commit

Permalink
Keep FPU arguments within the FPU stack
Browse files Browse the repository at this point in the history
I can't believe I haven't had to do this yet
  • Loading branch information
tbodt committed Jan 6, 2020
1 parent 5f308a7 commit 64bc899
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion emu/fpu.c
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
#include "emu/float80.h"
#include "emu/fpu.h"

#define ST(i) cpu->fp[cpu->top + i]
#define ST(i) cpu->fp[(cpu->top + i) % 8]

static void fpu_push(struct cpu_state *cpu, float80 f) {
cpu->top--;
Expand Down

0 comments on commit 64bc899

Please sign in to comment.