changing global variables in NASM assembly
问题 I've defined these global variables but I cant seem to change their value in the code. I need other C modules to have access to these variables. global base global freep SECTION .data base: dd 0 freep: dd 0 The code below gives this error: :173: error: invalid combination of opcode and operands So my question is how to a mov values into global variables? mov freep, esi 回答1: From the NASM manual: 2.2.2 NASM Requires Square Brackets For Memory References The rule is simply that any access to