I am studying how to program MSP430 micro-controllers and the book I am using shows examples using the IAR assembler that has features that are not part of Code Composer Studio. For example, in the book they are able to declare local variables and tell the assembler what memory location those variables are at. Here is some code that explains what I mean: ORG 0x0200 ; Start of RAM LoopCtr DS 2 ; 2 bytes for loop counter Another DS 1 ; 1 byte for another variable This uses an IAR assembler keyword "ORG" and "DS" to create 2 local variables named "LoopCtr" and "Another" and it makes sure that they start at memory location 0x0200 which happens to be the start of RAM for this particular chip they are programming. The problem I have is that I am not able to find any equivalent keywords in the Code Composer Studio that would allow me to do the same thing. I know there has to be a way to do this but all of the application notes I have found don't seem to show me how to do this. Does anyone know where I can find the instructions on how to tell the assembler for CCS to do the same thing?
↧