An assembler for MSP430(X).
Warning
This tool is currently in an experimental stage. Is has been used to successfully create simple programs but it is not broadly tested.
Usage: as.py [options]
-h, --help | show this help message and exit |
-x, --msp430x | Enable MSP430X instruction set |
-o FILE, --outfile=FILE | |
name of the object file | |
--filename=FILE | |
Use this filename for input (useful when source is passed on stdin) | |
-v, --verbose | print status messages to stderr |
--debug | print debug messages to stderr |
-i, --instructions | |
Show list of supported instructions and exit (see also -x) |
The instruction set as documented in the MSP430 family guides is supported as well as the following pseudo instructions:
The linker processes one or multiple .o4 files (the output from as) and creates a binary file that can be downloaded to a target.
Usage: ld.py [options] [FILE...]|-]
If no input files are specified data is read from stdin. Output is in “TI-Text” format.
-h, --help | show this help message and exit |
-o FILE, --outfile=FILE | |
name of the resulting binary (TI-Text) | |
-T FILE, --segmentfile=FILE | |
linker definition file | |
-m MCU, --mcu=MCU | |
name of the MCU (used to load memory map) | |
--mapfile=FILE | write map file |
-v, --verbose | print status messages |
--debug | print debug messages |
This is an (almost C compatible) preprocessor. It can work with macros (#define) and evaluate arithmetic expressions.
Supported directives are:
Usage: cpp.py [options]
-h, --help | show this help message and exit |
-o FILE, --outfile=FILE | |
name of the object file | |
-p FILE, --preload=FILE | |
process this file first. its output is discarded but definitions are kept. | |
-v, --verbose | print status messages |
--debug | print debug messages to stdout |
-D SYMVALUE, --define=SYMVALUE | |
define symbol | |
-I PATH, --include-path=PATH | |
Add directory to the search path list for includes |
To define symbols, use -D SYMBOL=VALUE respectively --define SYMBOL=VALUE
This is a disassembler for MSP430(X) code. It outputs an annotated listing. Each jump target is assigned an automatic label and a newline is inserted after each non conditional jump to make reading the source easier.
The disassembler currently has no knowledge about the memory map or usage of memory. Therefore it disassembles just anything, even if it is not code.
Provided with a symbol file, it can insert the names and named bits of accessed peripherals (for details see msp430/asm/definitions/F1xx.txt).
Warning
This tool is currently in an experimental stage. It is not fully tested and especially the cycle counts are not verified.
Usage: disassemble.py [options] [SOURCE...]
MSP430(X) disassembler.
-h, --help | show this help message and exit |
-o DESTINATION, --output=DESTINATION | |
write result to given file | |
--debug | print debug messages |
-v, --verbose | print more details |
-i TYPE, --input-format=TYPE | |
input format name (titext, ihex, bin, hex, elf) | |
-x, --msp430x | Enable MSP430X instruction set |
--source | omit hex dump, just output assembler source |
--symbols=NAME | read register names for given architecture (e.g. F1xx) |