Mail Archives: djgpp/1998/10/11/19:49:06
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
- Raw text -