How to make a Hello World in Nasm assembler on windows?

I would like to know how to make a Hello World in nasm with Windows 8 64-bit operating system.

Or should I switch to Tasm?

 2
Author: UselesssCat, 2016-09-23

1 answers

The code for doing a hola mundo in asm with TASM is like this

datos SEGMENT
cadena DB "Hola Mundo$"
datos ENDS
codigo SEGMENT
ASSUME CS:codigo,ds:datos
inicio :MOV AX, datos
        MOV DS, AX
        MOV AH,09h
        MOV DX,offset cadena
        INT 21h
fin: MOV AH,4Ch
        INT 21h
codigo ENDS
END inicio

Save in file with extension ASM, then execute the following commands located where we have the file ASM

  1. TASM namefile.asm
  2. TLINK namefile
  3. namefile

To run this you need to have the following components in the same directory as the ASM file: DPMILOAD.exe , DPMIMEM.DLL , TD.EXE , TLINK.EXE , TASM.EXE

 2
Author: Dev. Joel, 2016-09-23 19:09:16