Compile TUCK
This commit is contained in:
10
wipforth.wat
10
wipforth.wat
@@ -1095,6 +1095,16 @@
|
|||||||
|
|
||||||
;; : TUCK DUP -ROT ;
|
;; : TUCK DUP -ROT ;
|
||||||
|
|
||||||
|
(data (i32.const 0x05e4)
|
||||||
|
"\d0\05\00\00"
|
||||||
|
"\04TUCK\00\00\00"
|
||||||
|
"\00\00\00\00"
|
||||||
|
"\08\02\00\00" ;; DUP
|
||||||
|
"\44\02\00\00" ;; -ROT
|
||||||
|
"\0c\04\00\00") ;; EXIT
|
||||||
|
|
||||||
|
;; => 0x1c bytes
|
||||||
|
|
||||||
;; : SPACE? ( byte -- bool )
|
;; : SPACE? ( byte -- bool )
|
||||||
;; DUP 9 = SWAP \ Compare to horizontal tab
|
;; DUP 9 = SWAP \ Compare to horizontal tab
|
||||||
;; DUP 10 = SWAP \ Compare to line-feed
|
;; DUP 10 = SWAP \ Compare to line-feed
|
||||||
|
|||||||
Reference in New Issue
Block a user