From 82334990a3164d230175deff71a8f4415ad8b090 Mon Sep 17 00:00:00 2001 From: Koichi Nakamura Date: Mon, 20 Dec 2021 17:46:16 +0900 Subject: [PATCH] Add i32%, u32%, i16%, u16% --- bootstrap.fs | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/bootstrap.fs b/bootstrap.fs index 7655175..074b3cf 100644 --- a/bootstrap.fs +++ b/bootstrap.fs @@ -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 )