[OpenBIOS] Incorrect implementation of b?branch?

Segher Boessenkool segher at kernel.crashing.org
Mon Mar 2 18:27:49 CET 2009

> Basically looks OK to my untrained eyes, except I wonder if there are
> sign extension functions in Forth.

In OF, there are  <w@  and  <l@ , which do loads of signed 16-bit
and 32-bit values.  For other sign extensions: here, have some:

: >s16  ffff and 8000 xor 8000 - ;
: >s32  ffffffff and 80000000 xor 80000000 - ;


More information about the OpenBIOS mailing list