Forum Discussion

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

Debugger and disassembly.

Hello.

How to make steps and set breakpoints in disassembly?

for example i have following code.

    g_unOnchipRamBase = ONCHIP_RAM_BASE;
0x0100046c <InitIHEX+12>: movhi r2,528
0x01000470 <InitIHEX+16>: addi  r2,r2,0
0x01000474 <InitIHEX+20>: stw   r2,-32660(gp)

if i&#39;ll press F5 i will go through these all asm lines.

but, for example, i want to set breakpoint on line "addi r2,r2,0" or more important, i want execute code by single instruction in disassembly.

how?

2 Replies

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

    Hi,

    1. You can set a breakpoing but double click the left edge of the line.

    2. <div class='quotetop'>QUOTE </div>

    --- Quote Start ---

    How to execute code by single instruction in disassembly.[/b]

    --- Quote End ---

    In Debug Perspective, there is a tool in tool bar, named Use Step Filter/Step Debug, enable it then you can step in disassemble code.

    David