[retroforth] Re: Reva: question about 'key'

  • From: Charles Childers <charles.childers@xxxxxxxxx>
  • To: retroforth@xxxxxxxxxxxxx
  • Date: Sun, 30 Jan 2005 17:01:12 -0500

In Retro8 I'm using right now:

code 'key', key
        dup
        push ebx,ecx,edx
        sub ebx,ebx     ;0 = stdin
        mov edx, 1      ;count
        lea ecx, [esp-4]
        mov eax, 3      ;sys_read
        int 80h
        mov eax, [ecx]
        and eax, 255
        pop ebx,ecx,edx
        ret

Does this crash for you Helmar?

-- 
Charles Childers
http://www.retroforth.org

Other related posts: