On Jun 30, 3:40pm, sinck@owmyeye.ugive.com wrote: > How far away is linux assembly from dos assembly? Here's some -S output from gcc for linux/x86: .file "whello.c" .version "01.01" gcc2_compiled.: .data .type hello.0,@object .size hello.0,15 hello.0: .string "Hello, world!\n" .text .align 16 .globl main .type main,@function main: subl $12, %esp subl $4, %esp pushl $14 pushl $hello.0 pushl $1 call write addl $16, %esp xorl %eax, %eax addl $12, %esp ret .Lfe1: .size main,.Lfe1-main .ident "GCC: (GNU) cygnus-2.96 20000103" > > Just curious...I hate assembly. > > David > > \_ 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 > \_