[retroforth] Re: 'not' not working correctly

  • From: "Ron Aaron" <ron@xxxxxxxxxxx>
  • To: retroforth@xxxxxxxxxxxxx
  • Date: Mon, 24 Jan 2005 22:48:24 -0800 (PST)

On Mon, January 24, 2005 22:18, Ron Aaron said:
> The word 'not' is supposed to do a logical not operation.

> code 'not', forth_not
>    or eax, eax
>    mov eax, 0
>    jnz .1
>    inc eax
> .1:
> next

better:

or eax, eax
cmp eax, 1
sbb eax, eax


-- 
My GPG public key is at http://ronware.org/
fingerprint: 8130 734C 69A3 6542 0853  CB42 3ECF 9259 AD29 415D




Other related posts: