hola a todos.
bueno apenas estoy empesando con programacion asm y bueno quise compilar.
.MODEL SMALL
Stack SEGMENT STACK 'STACK'
DB 200h DUP(?)
Stack ENDS
Data SEGMENT 'DATA'
strMensaje db "hola mundo", 10, 13, "$"
strMensajedos db "este es otro mensaje", 10, 13, "$"
Data ENDS
Code SEGMENT 'CODE'
ASSUME CS:Code, DS:Data, SS:Stack
Inicio PROC
mov ax,data
mov ds,ax
mov dx,offset strMensajedos
int 21h
mov dx,offset strMensajedos
int 21h
mov ax, 4c00h
int 21h
Inicio ENDP
Code ENDS
END Inicio
cuando lo compilo en windows 8 x64 me salen estos errores y warnings:
C:\nasm-2.11.02\prog>yasm-1.2.0-win64.exe -f win64 -o c:\nasm-2.11.02\prog\uno.asm.o c:\nasm-2.11.02\prog\uno.asm
c:\nasm-2.11.02\prog\uno.asm:3: warning: Unrecognized string qualifier
c:\nasm-2.11.02\prog\uno.asm:4: error: instruction expected after label
c:\nasm-2.11.02\prog\uno.asm:10: error: instruction expected after label
c:\nasm-2.11.02\prog\uno.asm:13: error: junk at end of line, first unrecognized character is `:'
c:\nasm-2.11.02\prog\uno.asm:13: warning: `DS' segment register ignored in 64-bit mode
c:\nasm-2.11.02\prog\uno.asm:13: warning: `SS' segment register ignored in 64-bit mode
c:\nasm-2.11.02\prog\uno.asm:16: error: instruction expected after label
c:\nasm-2.11.02\prog\uno.asm:17: error: undefined symbol `data' (first use)
c:\nasm-2.11.02\prog\uno.asm:17: error: (Each undefined symbol is reported only once.)
c:\nasm-2.11.02\prog\uno.asm:18: warning: `ds' segment register ignored in 64-bit mode
c:\nasm-2.11.02\prog\uno.asm:19: error: instruction expected after label
c:\nasm-2.11.02\prog\uno.asm:19: error: undefined symbol `offset' (first use)
c:\nasm-2.11.02\prog\uno.asm:29: error: instruction expected after label
c:\nasm-2.11.02\prog\uno.asm:30: error: instruction expected after label
C:\nasm-2.11.02\prog>
y cuando compilo en winxp me sale esto.
C:\nasm>nasm.exe -f win32 -o c:\prog\dos.exe c:\prog\dos.asm
c:\prog\dos.asm:1: error: attempt to define a local label before any non-local l
abels
c:\prog\dos.asm:1: error: parser: instruction expected
c:\prog\dos.asm:4: error: comma expected after operand 1
c:\prog\dos.asm:5: error: symbol `Pila' redefined
c:\prog\dos.asm:5: error: parser: instruction expected
c:\prog\dos.asm:9: error: symbol `Datos' redefined
c:\prog\dos.asm:9: error: parser: instruction expected
c:\prog\dos.asm:12: error: parser: instruction expected
c:\prog\dos.asm:14: error: parser: instruction expected
c:\prog\dos.asm:18: error: comma, colon, decorator or end of line expected after
operand
c:\prog\dos.asm:23: error: symbol `Inicio' redefined
c:\prog\dos.asm:23: error: parser: instruction expected
c:\prog\dos.asm:24: error: symbol `Codigo' redefined
c:\prog\dos.asm:24: error: parser: instruction expected
c:\prog\dos.asm:25: error: parser: instruction expected
C:\nasm>
tambien ya intente hacer primero el archivo .o y despues el .exe pero al intentar crear el .o mesalen los mismos errores.
bueno espero que me pueda ayudar saludos Drewermerc.