Author Topic: Int 21h  (Read 16226 times)

nobody

  • Guest
Int 21h
« 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:
;*/

nobody

  • Guest
Re: Int 21h
« Reply #1 on: January 22, 2008, 05:06:50 PM »
never mind, lol
message: db "Hello World!",24h

nobody

  • Guest
Re: Int 21h
« Reply #2 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: