printf (' hello world! ');

Stuart Foster stuartf@MediServe.com
Fri, 30 Jun 2000 15:33:21 -0700


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: plug-discuss@lists.PLUG.phoenix.az.us
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  ecloud@bigfoot.com
 (_  | |_)          http://www.bigfoot.com/~ecloud  kb7pwd@kb7pwd.ampr.org
 __) | | \________________________________________________________________
Get money for spare CPU cycles at http://www.ProcessTree.com/?sponsor=5903

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