Forum Discussion

Altera_Forum's avatar
Altera_Forum
Icon for Honored Contributor rankHonored Contributor
20 years ago

How to debug in ASM code

http://forum.niosforum.com/work2/style_emoticons/<#EMO_DIR#>/sad.gif Hi,

I&#39;m trying to debug assembler code, but the debugger never jumps into the asm code like it does with c code.

It just ignores the breakpoint set on the asm line.

How do I write asm code to "convince" the compiler/assembler to add debug code?

5 Replies

  • Altera_Forum's avatar
    Altera_Forum
    Icon for Honored Contributor rankHonored Contributor

    --- Quote Start ---

    originally posted by david_cai@Dec 14 2005, 02:12 AM

    http://forum.niosforum.com/work2/style_emoticons/<#emo_dir#>/sad.gif hi,

    i&#39;m trying to debug assembler code, but the debugger never jumps into the asm code like it does with c code.

    it just ignores the breakpoint set on the asm line.

    how do i write asm code to "convince" the compiler/assembler to add debug code?

    <div align='right'><{post_snapback}> (index.php?act=findpost&pid=11528)

    --- quote end ---

    --- Quote End ---

    When in the debugger, select the disassembly mode (icon). Then when calling your assembler routine, you can "step into" the that code.
  • Altera_Forum's avatar
    Altera_Forum
    Icon for Honored Contributor rankHonored Contributor

    hi, everybody

    I can step into asm rountine.

    But how can I run into asm rountine?

    I set a breakpoint in asm code, then run the program, but it can&#39;t stop at the breakpoint.

    Anyone help?
  • Altera_Forum's avatar
    Altera_Forum
    Icon for Honored Contributor rankHonored Contributor

    hello :

    i am new !

    i don&#39;t know how to set a breakpoint,anyone can help me?
  • Altera_Forum's avatar
    Altera_Forum
    Icon for Honored Contributor rankHonored Contributor

    Hi wbqyy,

    You can set a breakpoint at the line by double click at the left edge space of them.
  • Altera_Forum's avatar
    Altera_Forum
    Icon for Honored Contributor rankHonored Contributor

    hi, everybody

    I can step into asm rountine.

    But how can I run into asm rountine?

    I set a breakpoint in asm code, then run the program, but it can&#39;t stop at the breakpoint.

    Anyone help?