On Mon, 21 Jun 1999, Alistair Riddoch wrote:

> Luke writes:
> > 
> > 
> > Can some clever chap (or chapess) tell me what is wrong with this:
> > It is supposed to print the letter A to the screen..... But it doesn't.
> > 
> > export      _main
> > _main:
> >     mov     eax,#4
> >     mov     ebx,#1
> >     mov     ecx,#13
> >     mov     edx,#1
> >     int     $80
> > 
> >     mov     eax,#1
> >     int     $80
> > .data
> > .bss
> > 
> > 
> 
> 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
> 
> 
> You need to pass a a pointer to the message to the kernel. What were you
> trying to do when you passed #13?

Ta. It should have been 65...
Luke(Boo) Farrar.

Reply via email to