Declare local storage to build more than 4 bytes x86 MASM
There seems to be no way to declare 1 variable that can get more than 4 bytes allocated to the stack in x86 Assembly MASM, I find my store this way
;METHOD 1
method1 PROC stdcall uses eax ebx, val1:dword
LOCAL tempString, dTemp
I tried to allocate bytes like this:
;METHOD 1
method1 PROC stdcall uses eax ebx, val1:dword
LOCAL tempString byte 12 dup(?)
LOCAL dTemp
but it throws an error A2008: syntax error : byte
How can I allocate storage for one variable that got more than 4 bytes allocated to the stack?
How .. I don't understand why I can't just allocate a byte string?
+3
Chisx
source
to share
1 answer
You can just allocate multiple bytes with this syntax:
strTemp[12]:byte
The above statement would allocate 12 bytes onto the stack identified by the strtemp identifier .
0
Chisx
source
to share