x64 NDR: Fix crashes/undefined behaviour with 2+ GB of allocated RAM

This commit is contained in:
Cacodemon345
2025-03-01 22:31:10 +06:00
parent 843dee5707
commit f290cc0173
3 changed files with 34 additions and 34 deletions

View File

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