On Mon, 21 Jun 1999, Alistair Riddoch wrote:
> > >
> > > Very nearly, but not quite. Here is a version that works:-
> > >
> > > export _main
> > > _main:
> > > mov eax,#4
> > > mov ebx,#1
> > > mov ecx,#opstr
> > > mov edx,#1
> > > int $80
> > >
> > > mov eax,#1
> > > int $80
> > > .data
> > > opstr:
> > > .ascii "A"
> > > .bss
> > >
>
> It didn't occur to me until I had actually fixed the program and test it
> that we don't usually use the three letter notation for registers. For
> 16bit code they are usually just refered to by two letter name ax, bx, cx
> etc.
I'll bear that in mind. Next cunning question: How do I have my own _start
in a program. It doesn't want to let me. What options should I compile
with?
Its so that I can read command line stuff...
Luke(Boo) Farrar.