Skip to content

Commit

Permalink
Implement pop form of ret
Browse files Browse the repository at this point in the history
  • Loading branch information
tbodt committed May 26, 2018
1 parent fa00fa7 commit 3182a42
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions emu/gen.c
Original file line number Diff line number Diff line change
Expand Up @@ -176,8 +176,8 @@ static inline void gen_op(struct gen_state *state, gadget_t *gadgets, enum arg a
load(src, z); store(dst, z); \
state->block->code[start - 1] = (state->size - start) * sizeof(long); \
} while (0)
#define RET_NEAR_IMM(imm) UNDEFINED
#define RET_NEAR() gg(ret, saved_ip)
#define RET_NEAR_IMM(imm) ggg(ret, saved_ip, 4 + imm)
#define RET_NEAR() RET_NEAR_IMM(0)
#define INT(code) gg_here(interrupt, (uint8_t) code)

#define PUSHF() UNDEFINED
Expand Down

0 comments on commit 3182a42

Please sign in to comment.