suijingfeng / vkOpenArena

Old games never die, they just fade away...
http://openarena.ws
60 stars 6 forks source link

ERROR: programStack corrupted in compiled code #20

Closed suijingfeng closed 5 years ago

suijingfeng commented 5 years ago

using msvc2017 compile vm_x86.c and vm_x86_64.asm got this.

suijingfeng commented 5 years ago

programStack = 0 , while stackOnEntry - (8 + 4 * MAX_VMMAIN_ARGS) = 1048516

MAX_VMMAIN_ARGS = 13

suijingfeng commented 5 years ago

Intel x86 Assembler Instruction Set Opcode Table. http://sparksandflames.com/files/x86InstructionChart.html

suijingfeng commented 5 years ago

why no function write to vm_syscallNum?

suijingfeng commented 5 years ago

debug is OK, but not release