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:
parent
57be2ef8d4
commit
b98a6d63b1
3 changed files with 74 additions and 16 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Reference in a new issue