Add "a" and "A"

This commit is contained in:
Koichi Nakamura 2020-12-31 08:09:22 +09:00
parent 8e026766ce
commit aa1246ef45

13
core.fs
View file

@ -194,5 +194,16 @@ l!
\ Store byte 'c' to here and increment it \ Store byte 'c' to here and increment it
cB i, 'h, '@, '$, 'h, 'L, k1k0-, '+, 'h, '!, 'e, l! cB i, 'h, '@, '$, 'h, 'L, k1k0-, '+, 'h, '!, 'e, l!
kA kB B t \ 'a' ( c-addr -- a-addr ) ALIGNED
\ Round up 'a' to a multiple of CELL
ca i,
'L, Ck1k0--, '+, \ ( a+CELL-1 )
'L, Ck1k0-- k0k1- ^, \ ( a+CELL-1 ~(CELL-1) )
'&, 'e,
l!
\ 'A' ( -- ) ALIGN
\ Round up 'here' to a multiple of CELL
cA i, 'h, '@, 'a, 'h, '!, 'e, l!
Q Q