This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

'c55x Assembly - Algebraic vs. Mneumonic

Hello Community Members,

Just wondering - how many of you code 'C55x assembly algebraic vs. assembly?

I must admit - the algebraic mode is interesting.

A question for TI - is it possible to do a project with some files being algebraic and some being assembly?

Also - when stepping though with the debugger in algebraic mode - is it possible to 'step into' the instruction so to speak?  I will try that to see if it is possible to decompose the algebraic instructions.  Maybe the opcodes are actually the same (as mneumonic) - I will check:

i.e. - xar6 = 0x12345; -> mov  #0x12345, xar6 (or something similar)

Thanks,
johnw

  • OK - looks like the first question to TI is possibly answered here:

    http://e2e.ti.com/support/development_tools/code_composer_studio/f/81/p/36886/128830.aspx#128830

    Best Regards,
    johnw

  • John,

    There isn't any ability to "step into" an algebraic instruction any more than you could for Mnemonic instructions.  The machine readable object code is the same, it is only the human readable form that is different.  It's mostly a programming preference.  I believe this is still valid in CCSv4 like it was for CCSv3.x, you can select which instruction set to display in the Disassembly window.  Haven't used it recently, so can't say for sure.

    Regards.

  • Hi johnw,

    The linked forum post is correct - you can choose each assembly file to build as mnemonic or algebraic by right clicking on the file, clicking on Properties, C/C++ Build, Runtime Model Options, then choose mnemonic or algebraic where it reads "Select assembly source language".

    If you right click inside of the Disassembly window (when debugging), you can choose your Disassembly Style as either algebraic or mnemonic. Maybe this is what you are looking for. You can step through assembly code just like C code by clicking on "Assembly Step Into/Over" from the Target menu.

    I prefer mnemonic, but algebraic looks pretty.

    Hope this helps,
    Mark

  • Mark,

    I agree about algebraic, right up until you see the goto's.

    Regards,
    johnw

  • Hello All,

    Any updates here?  Based on OP?

    Thanks!
    johnw 

  • Hi johnw,

    What is your question?

    Thanks,
    Mark

  • Are we conducting a poll at this point?

    I'm using algebraic assembly mode. You're right that it's "interesting" in that you can type things that are perfectly intelligible to humans but not valid TI assembly. Some of the instruction qualifiers (such as accessing memory-mapped registers) are not at all obvious. But for the most part, the problems with alegraic assy are in the writing, not the reading. My goal was to write code that another programmer (probably with less experience) could pick up and understand without a huge learning curve.