mirror of
https://github.com/nineties/planckforth
synced 2025-01-13 08:01:10 +01:00
Add i32%, u32%, i16%, u16%
This commit is contained in:
parent
67c4b25adc
commit
82334990a3
1 changed files with 5 additions and 1 deletions
|
@ -1668,9 +1668,13 @@ do-stack 16 cells + do-sp !
|
||||||
|
|
||||||
: cell% ( -- align size ) cell cell ;
|
: cell% ( -- align size ) cell cell ;
|
||||||
: char% ( -- align size ) 1 1 ;
|
: char% ( -- align size ) 1 1 ;
|
||||||
: byte% cell% ;
|
: byte% 1 1 ;
|
||||||
: ptr% cell% ;
|
: ptr% cell% ;
|
||||||
: int% cell% ;
|
: int% cell% ;
|
||||||
|
: i32% 4 4 ;
|
||||||
|
: u32% 4 4 ;
|
||||||
|
: i16% 2 2 ;
|
||||||
|
: u16% 2 2 ;
|
||||||
|
|
||||||
\ allocate user memory
|
\ allocate user memory
|
||||||
: %allot ( align size -- addr )
|
: %allot ( align size -- addr )
|
||||||
|
|
Loading…
Reference in a new issue