printf (' hello world! ');

Top Page
Attachments:
Message as email
+ (text/plain)
Delete this message
Reply to this message
Author: Stuart Foster
Date:  
Subject: printf (' hello world! ');
I'm busted it is dos.
What is the Linux equivalent of assembly ?

-----Original Message-----
From: Shawn T. Rutledge [mailto:rutledge@cx47646-a.phnx1.az.home.com]
Sent: Friday, June 30, 2000 2:15 PM
To:
Subject: Re: printf (' hello world! ');


On Fri, Jun 30, 2000 at 11:04:08AM -0700, Stuart Foster wrote:
> And for the really sick..
>
> dosseg
> .model small
> .stack 100h
>
> .data
> hello_message db 'Hello, World!',0dh,0ah,'$'
>
> .code
> main  proc
>       mov    ax,@data
>       mov    ds,ax

>
>       mov    ah,9
>       mov    dx,offset hello_message
>       int    21h

>
>       mov    ax,4C00h
>       int    21h
> main  endp
> end   main


Is this for DOS or Linux?

-- 
  _______                   Shawn T. Rutledge / KB7PWD  
 (_  | |_)          http://www.bigfoot.com/~ecloud  
 __) | | \________________________________________________________________
Get money for spare CPU cycles at http://www.ProcessTree.com/?sponsor=5903


_______________________________________________
Plug-discuss mailing list -
http://lists.PLUG.phoenix.az.us/mailman/listinfo/plug-discuss