Forum Discussion
Altera_Forum
Honored Contributor
20 years agoHow to debug in ASM code
http://forum.niosforum.com/work2/style_emoticons/<#EMO_DIR#>/sad.gif Hi,
I'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
Honored 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'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
Honored 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't stop at the breakpoint. Anyone help? - Altera_Forum
Honored Contributor
hello :
i am new ! i don't know how to set a breakpoint,anyone can help me? - Altera_Forum
Honored Contributor
Hi wbqyy,
You can set a breakpoint at the line by double click at the left edge space of them. - Altera_Forum
Honored 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't stop at the breakpoint. Anyone help?