Re: asm question
[Prev][Next][Index][Thread]
Re: asm question
.MODEL tiny
.DATA
HelloMsg DB 'Hello World!',0Ah,0Dh,'$'
.CODE
.STARTUP
HlWorld PROC
MOV DX,OFFSET HelloMsg
MOV AH,9
INT 21h
MOV AH,4Ch
INT 21h
HiWorld ENDP
something like that should work.
NB: DOS (int 21h) func 9 prints a string, where a $ marks the end. (the 0Dh
and 0Ah is the byte-equivalent of a new line. the dos func 4Ch is for
ending your program.
compile that to a COM file. (that's what the model tiny is for.)
--
-R.Zwitserloot@BTInternet.com
Doug Torrance <torrance@geocities.com> wrote in article
<33A01D88.6401@geocities.com>...
> How would you make a "hello world" prog in 83asm?
>
> Thanks a bunch!
>
> --
> Doug Torrance
> torrance@geocities.com
> http://profzoom.home.ml.org
> (: Have a happy day! :)
>
Follow-Ups:
References: