NASM - The Netwide Assembler

NASM Forum => Using NASM => Topic started by: nobody on January 22, 2008, 05:04:23 PM

Title: Int 21h
Post by: nobody on January 22, 2008, 05:04:23 PM
Hi, I used fasm, whi won't it work when assembled :) thx
;/*
org 100h

__entry_point:
   pushf
   mov ah,09h
   mov dx,message
   int 21h
   mov ah,08h
   int 21h
   popf
   mov ah,4ch
   int 21h

message: db "Hello World!", 0


end_of_file:
;*/
Title: Re: Int 21h
Post by: nobody on January 22, 2008, 05:06:50 PM
never mind, lol
message: db "Hello World!",24h
Title: Re: Int 21h
Post by: nobody on January 23, 2008, 06:43:31 AM
> whi[ne] won't it work

It should. Just print "Hello World!" and maybe something more :LOL:

> never mind, lol  

As next, you can write a routine printing ZERO-terminated text, "$" sucks :LOL:

PS: no need to pushf and popef :LOL: