Make computation of ~(CELL-1) simpler

This commit is contained in:
Koichi Nakamura 2020-12-31 08:13:42 +09:00
parent aa1246ef45
commit 717d2e28fb

View file

@ -197,8 +197,8 @@ cB i, 'h, '@, '$, 'h, 'L, k1k0-, '+, 'h, '!, 'e, l!
\ 'a' ( c-addr -- a-addr ) ALIGNED \ 'a' ( c-addr -- a-addr ) ALIGNED
\ Round up 'a' to a multiple of CELL \ Round up 'a' to a multiple of CELL
ca i, ca i,
'L, Ck1k0--, '+, \ ( a+CELL-1 ) 'L, Ck1k0--, '+, \ ( a+CELL-1 )
'L, Ck1k0-- k0k1- ^, \ ( a+CELL-1 ~(CELL-1) ) 'L, k0k0-C-, \ ( a+CELL-1 ~(CELL-1) )
'&, 'e, '&, 'e,
l! l!