Hi,

I've been trying to use the msp430 port of binutils to 
develop a new port. I've been looking at the 8 bit (1 byte) 
instructions of the MSP430 processor and have come across a 
problem.

I have been changing small parts of the tc-msp430.c. What I 
tried to do was output a single byte value using the 
following code
   
         frag = frag_more(1);
         number_to_chars_littleendian(frag,5,1);

Now the result of this is a value of '0500' is output in the 
hex file instead of '0A' which is what I need for my new 
port. Now why this happens I think is because the MSP430 
processor only supports 16 bits even when its only an 8 bit 
value I'm printing. So is there a way to fix this, either in 
the code or an option??? Is there a way around this or 
should I try and find another port of binutils that suits my 
needs because it may take too much work to change this???

Thankyou for your time in answering this question.

Simon Reynolds.


Reply via email to