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 ea026f8d67 | 1 year ago | |
---|---|---|
.. | ||
README.md | 1 year ago | |
alee-msp430.cpp | 1 year ago | |
msp430fr2476.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.