NASM - The Netwide Assembler
NASM Forum => Using NASM => Topic started by: nobody on March 16, 2008, 01:55:45 AM
-
How work variables? Inn php are the simpel($variabel = "lol";), but how inn nasm?
-
variabel db "lol"
Best,
Frank
-
But how to get it then? Youst type Variabel db then?
-
NO.
jmp @f
variabell: db "lol"
mariawell: db 0,0,0,0
@@: mov ax,"bu"
mov [variabell],ax ; GOOD
mov al,"g"
mov [variabell+2],al ; GOOD
mov eax,"bugs"
; mov [variabell],eax ; !!! BUGGED !!! :-(
mov [mariawell],eax ; GOOD
jmp far 0:0 ; PM only