Hey, Stuart started it, *he's* the sick one. Here's the A86 code for DOS: lea dx,hello_message mov ah,09 int 021 int 020 hello_message db 'Hello, world!',0d,0a,'$' Assembles to 25 bytes as shown (hello.com). Eric Isaacson is at least a demigod. P.S. like how I saved 4 bytes by using int 20h? Woohoo! I'll bet that C++ abomination weighs in at half a meg! :-D P.P.S. If you _really_ wanted to run it on a linux box you could build it into your boot sector and use a BIOS call instead of int21. See John Fine's NASM code called SMBMBR03 if yer that far gone. Oh yeah, howdy and welcome to the person who started this thread. Steve Smith, "dead horses beaten while you wait" 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 > > -----Original Message----- > From: Lucas Vogel [mailto:lvogel@exponent.com] > Sent: Friday, June 30, 2000 10:53 AM > To: 'plug-discuss@lists.PLUG.phoenix.az.us' > Subject: RE: printf (' hello world! '); > > I think my preference is: > > #include > > cout << "Hello world!\n" ; > > > -----Original Message----- > > From: Kevin Buettner [mailto:kev@primenet.com] > > Sent: Friday, June 30, 2000 10:46 AM > > To: plug-discuss@lists.PLUG.phoenix.az.us > > Subject: Re: printf (' hello world! '); > > > > > > On Jun 30, 1:07pm, Furmanek, Greg wrote: > > > > > Actually it supposed to be: > > > char *messsage = "hellow world!"; > > > printf("%s\n", message); > > > > Or simply > > > > printf("Hello world!\n"); > > > > _______________________________________________ > > Plug-discuss mailing list - Plug-discuss@lists.PLUG.phoenix.az.us > > http://lists.PLUG.phoenix.az.us/mailman/listinfo/plug-discuss > > > > _______________________________________________ > Plug-discuss mailing list - Plug-discuss@lists.PLUG.phoenix.az.us > http://lists.PLUG.phoenix.az.us/mailman/listinfo/plug-discuss > > _______________________________________________ > Plug-discuss mailing list - Plug-discuss@lists.PLUG.phoenix.az.us > http://lists.PLUG.phoenix.az.us/mailman/listinfo/plug-discuss -- Carpe cerevisiae