X-Git-Url: http://git.subgeniuskitty.com/pforth/.git/blobdiff_plain/ee8dc9e9e0f59b8e38dec3732caefe9f3af2b431..c1a87b8298475c3fdd007b14a1413d2a6fd0fa61:/fth/misc2.fth diff --git a/fth/misc2.fth b/fth/misc2.fth index c943e82..c0791da 100644 --- a/fth/misc2.fth +++ b/fth/misc2.fth @@ -122,18 +122,18 @@ variable rand-seed here rand-seed ! : B->S ( c -- c' , sign extend byte ) dup $ 80 and IF - $ FFFFFF00 or + [ $ 0FF invert ] literal or ELSE - $ 000000FF and + $ 0FF and THEN ; -: W->S ( 16bit-signed -- 32bit-signed ) +: W->S ( 16bit-signed -- cell-signed ) dup $ 8000 and - if - $ FFFF0000 or + IF + [ $ 0FFFF invert ] literal or ELSE - $ 0000FFFF and - then + $ 0FFFF and + THEN ; : WITHIN { n1 n2 n3 -- flag }