-
Notifications
You must be signed in to change notification settings - Fork 66
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
More simple Forth-Standard words #430
Labels
Comments
TG9541
added a commit
that referenced
this issue
Apr 16, 2021
TG9541
added a commit
that referenced
this issue
Apr 17, 2021
TG9541
added a commit
that referenced
this issue
Apr 17, 2021
TG9541
added a commit
that referenced
this issue
Apr 24, 2021
TG9541
added a commit
that referenced
this issue
Feb 22, 2022
#430 Forth Standard words CELLS CELL+ TRUE FALSE RSHIFT
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
>BODY
: >BODY ( xt -- a-addr ) 3 + ;
ALIGN
ALIGNED
C"
CELL+
' 2+ ALIAS CELL+ ( c-addr1 -- c-addr2 )
CELLS
' 2* ALIAS CELLS ( n1 -- n2 )
CHAR+
' 1+ ALIAS CHAR+ ( c-addr1 -- c-addr2 )
CHAR
: CHAR ( "char" -- c ) BL WORD CHAR+ C@ ;
CHARS
[CHAR]
: [CHAR] ( "name"<spaces -- ) CHAR POSTPONE LITERAL ; IMMEDIATE
COMPILE,
' CALL, ALIAS COMPILE, ( xt -- )
ENVIRONMENT?
: ENVIRONMENT? ( c-addr u -- false ) 2DROP 0 ;
FALSE
' 0 ALIAS FALSE ( -- false )
INVERT
' NOT ALIAS INVERT ( x1 -- x2 )
J
I
(won't work withFOR ... NEXT
)RSHIFT
LSHIFT ( n1 u -- n2 )
STATE
STATE?
and a variablestateflag
TO
VALUE
TRUE
' -1 ALIAS TRUE ( -- true )
The text was updated successfully, but these errors were encountered: