gahh... ok here it is... you have 2 labels (label1, label2)
label1:
mov eax, label2-label1
Enter label2-label1, 00h
label2:
first mov is valid. second fucntion, the enter, is invalid, it says specify size operand. its getting on my nerves.. any ideas or solutions ?
-thx
label1:
mov eax, label2-label1
Enter label2-label1, 00h
label2:
first mov is valid. second fucntion, the enter, is invalid, it says specify size operand. its getting on my nerves.. any ideas or solutions ?
-thx
specify size
Enter word ptr (label2-label1), 00h ; ENTER imm16,imm8
align 4
label1:
:::
align 4
label2:
Enter word ptr (label2-label1), 00h ; ENTER imm16,imm8
align 4
label1:
:::
align 4
label2:
:)
thx i fixed it. btw its probably better not to allign the code to four. just the stack. like so:
labelx:
nop ; size of data
nop ; or just code we might want to move to stack.
nop
stacksize equ ($-labelx+3) / 4
enter word ptr (stacksize*4), 0 ; this will allign the stack to 4, without adding code.
leave ; to exit the stack frame
thx i fixed it. btw its probably better not to allign the code to four. just the stack. like so:
labelx:
nop ; size of data
nop ; or just code we might want to move to stack.
nop
stacksize equ ($-labelx+3) / 4
enter word ptr (stacksize*4), 0 ; this will allign the stack to 4, without adding code.
leave ; to exit the stack frame