Date: Mon, 12 Oct 1998 00:47:21 +0100 (BST) From: George Foot To: djgpp AT delorie DOT com Subject: Re: newbie In-Reply-To: <6vr9m6$ss7$1@supernews.com> Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Reply-To: djgpp AT delorie DOT com On Sun, 11 Oct 1998, jud wrote: > can someone send me a program that simply prints a message, but in djgpp > assembly Try this: (I can't test it at the moment, sorry) .text .p2align 3 .global _main _main: pushl $_string call _puts addl $4, %esp xorl %eax, %eax ret .data _string: .string "Hello, world!" You could have just compiled a Hello World program written in C using the -S switch, to get assembly language output. -- george DOT foot AT merton DOT oxford DOT ac DOT uk xu do tavla fo la lojban -- http://xiron.pc.helsinki.fi/lojban/lojban.html