Jump to content
xisto Community

Nicolas

Members
  • Content Count

    1
  • Joined

  • Last visited

  1. Hi, I'm trying to learn assembly but I can't compile any "hello world" programs... And I don'n know what I'm doing wrong... I downloaded NASM ,NASMW and TASM32. The program is like this: EXAMP1.ASM:;title Hello World Program; This program displays "Hello, World!"dosseg.model small.stack 100h.datahello_message db 'Hello, World!',0dh,0ah,'$'.codemain proc mov ax,@data mov ds,ax mov ah,9 mov dx,offset hello_message int 21h mov ax,4C00h int 21hmain endpend main And when I compile this occurs:C:\>CD NICKSC:\Nicks>nasm EXAMP1.ASMEXAMP1.ASM:5: error: parser: instruction expectedEXAMP1.ASM:6: error: parser: instruction expectedEXAMP1.ASM:12: error: parser: instruction expectedEXAMP1.ASM:17: error: comma or end of line expectedEXAMP1.ASM:22: error: parser: instruction expectedEXAMP1.ASM:23: error: parser: instruction expectedC:\Nicks>
×
×
  • Create New...

Important Information

Terms of Use | Privacy Policy | Guidelines | We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.