Skip to content
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

Closed
TG9541 opened this issue Apr 16, 2021 · 0 comments · Fixed by #438
Closed

More simple Forth-Standard words #430

TG9541 opened this issue Apr 16, 2021 · 0 comments · Fixed by #438
Assignees

Comments

@TG9541
Copy link
Owner

TG9541 commented Apr 16, 2021

FS implementation
>BODY : >BODY ( xt -- a-addr ) 3 + ;
ALIGN no op
ALIGNED no op
C" `' $" ALIAS 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 no op
[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 like I (won't work with FOR ... NEXT)
RSHIFT like LSHIFT ( n1 u -- n2 )
STATE kludge using STATE? and a variable stateflag
TO limited to writable dictionary, like VALUE
TRUE ' -1 ALIAS TRUE ( -- true )
@TG9541 TG9541 self-assigned this Apr 16, 2021
TG9541 added a commit that referenced this issue Jun 3, 2021
TG9541 added a commit that referenced this issue Jun 3, 2021
This was referenced Jun 3, 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
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant