[retroforth] Re: Request for Linux specific words

  • From: Charles Childers <charles.childers@xxxxxxxxx>
  • To: retroforth@xxxxxxxxxxxxx
  • Date: Thu, 20 Jan 2005 20:07:16 -0500

> code 'return',return
>         upop ebx
>         mov eax, 1
>         int 80h
> ;
> 
> It is in my rf now :-)
>
> : bye 0 return ;

I'd have done:

: return 1 1 syscall ; 

But that's just because I prefer using Forth to assembly. You could go
even further:

: bye 0 : return 1 1 syscall ;

Saving a few bytes and making use of multiple entry points.

Other related posts: