You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
Clyne cdf19490df | 1 year ago | |
---|---|---|
.. | ||
examples | 1 year ago | |
README.md | 1 year ago | |
alee-msp430.cpp | 1 year ago | |
build.sh | 1 year ago | |
lzss.c | 1 year ago | |
lzss.h | 1 year ago | |
msp430fr2476.h | 1 year ago | |
msp430fr2476.ld | 1 year ago | |
msp430fr2476_symbols.ld | 1 year ago |
README.md
msp430 implementation
This is the MSP430 port of Alee Forth. It produces a binary that enters a REPL made available on the UART peripheral at 115200 baud. The specific target is MSP430G2553.
Building
make clean
(just in case)make msp430-prep
: Buildsalee
for the host computer and uses it to create analee.dat
blob containing bytecode forforth/core.fth
andforth/msp430.fth
.make msp430
: Producesalee-msp430
, a standalone binary for the MSP430 with built-in core and msp430 word-sets.
The final binary is < 11 kB and provides 150 bytes for user dictionary in RAM (assuming 512 bytes of total RAM).
msp430.fth
The msp430 word-set makes programming for the MSP430 easier:
- All register names are defined (P1OUT, ADC10MEM, etc.).
r!
andr@
to write and read device memory (i.e. registers).rset
,rclr
,rtgl
work liker!
but set, clear, or toggle the given value/mask instead.