summaryrefslogtreecommitdiff
path: root/readme.md
blob: 2eb22a7392dea0cf41ac69acc10b81805488604a (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
# sanctuary forth (working title)

sanctuary forth is a 64-bit subroutine threaded forth system
for amd64 linux systems.

## stack effect notation

- `a`: memory address
- `c`: one byte value
- `n`: signed integer
- `u`: unsigned integer
- `?`: boolean flag

## Glossary
the following is a list of words available in this forth. (neither of these have been implemented yet i'm just putting them here in the meantime lol)

### `dp   ( -- a )`
`dp` is a variable that contains the lowest free byte of memory in user memory.

### `here   ( -- a )`
`here` yields the address of the first available byte
in user memory.