mirror of
https://github.com/nineties/planckforth
synced 2024-12-25 21:58:22 +01:00
Merge pull request #39 from nineties/add-new-align
Add i32%, u32%, i16%, u16%
This commit is contained in:
commit
ed61b06184
1 changed files with 5 additions and 1 deletions
|
@ -1668,9 +1668,13 @@ do-stack 16 cells + do-sp !
|
|||
|
||||
: cell% ( -- align size ) cell cell ;
|
||||
: char% ( -- align size ) 1 1 ;
|
||||
: byte% cell% ;
|
||||
: byte% 1 1 ;
|
||||
: ptr% cell% ;
|
||||
: int% cell% ;
|
||||
: i32% 4 4 ;
|
||||
: u32% 4 4 ;
|
||||
: i16% 2 2 ;
|
||||
: u16% 2 2 ;
|
||||
|
||||
\ allocate user memory
|
||||
: %allot ( align size -- addr )
|
||||
|
|
Loading…
Reference in a new issue