Fix up offset calculations in x86-64 absolute address opcode generation, and add pointer to RAM array in NO_IMMEDIATES blocks. Fixes crashes/segfaults with x86-64 recompiler.

This commit is contained in:
SarahW 2019-04-30 21:20:00 +01:00
commit b98a6d63b1
3 changed files with 74 additions and 16 deletions

View file

@ -1,3 +1,5 @@
/*RBP = cpu_state + 128
R12 = ram (if block->flags & CODEBLOCK_NO_IMMEDIATES)*/
#define REG_AX 0
#define REG_CX 1
#define REG_DX 2