Code:
HERE 81 C, 82 C, 83 C, CONSTANT TEST
Here's a sample run where I then read back the three bytes from RAM:
Code:
HERE 81 C, 82 C, 83 C, CONSTANT TEST OK
test c@ . 81 OK
test 1 + c@ . 82 OK
test 2 + c@ . 83 OK
Note that the header for this word ends up AFTER the data.
If you'd like to have the header first so that you can keep adding more data, you might like:
Code:
: MYCREATE <BUILDS DOES> ;
along with a sample run:
Code:
: MYCREATE <BUILDS DOES> ; OK
MYCREATE TEST 81 C, 82 C, 83 C, OK
TEST C@ . 81 OK
TEST 1+ C@ . 82 OK
TEST 2 + c@ . 83 OK