mspgcc    | Home | Documentation | mspgcc Project page on SourceForge
MSPGCC
Subsections
Introduction
News
Documentation
Tools
FAQ
Contribute
Reporting bugs
Links
Wiki
 
Useful
BaudrateCalc
Assembler
 
Exits
MSP430@ti.com
GCC home
Binutils home
Python.org
Cygwin
 
Email Us
Webmaster

Dmitry Diky
Chris Liechti
 
 
© 2001-2009
  

Single Line MSP430 Assembler

You can enter a line of assembler code in the text field below. The resulting machine code along with data words is then printed.

Example: "mov #7, R6"

Input line:

Description of output:
The first line is the assembler line that is realy interpreted. This can be different to the input for emulated instructions.

  • OPC: 16 bit word for the instruction opcode
  • DW: 16 bit data word
  • PCREL: 16 bit relative address to the current pos. The linker would have to calculate the real address here.
When you use labels instead of nummeric values, those show up again in the output.

The jump instructions (jxx, e.g. jmp) expect a byte offset, relative to the current position. Only nummeric offsets are allowed. The linker would need to calculate the offset when using labels.

This software uses the constant registers of the MSP. However the result can differ from other assembers.

MSP430 Disassembler

Here you can disassemble a series of word values. It's the opposite of the operation above.

Example: 0x4035 0x0007

Input values:

The input can be hex or dec. If not enough numbers are passed, the output can contain the string "UNKNOWN". This happens e.g. when an instruction requires an immediate value but only one value was given.

Disclaimer

And as usual - no warranties that the given information is correct. Use at your own risk.