This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revisionNext revision | Previous revisionNext revisionBoth sides next revision | ||
notes:comporg:spring2024:projects:dapx [2024/03/24 23:39] – [Debug Registers] wgates1 | notes:comporg:spring2024:projects:dapx [2024/03/24 23:43] – [Debug Registers] wgates1 | ||
---|---|---|---|
Line 437: | Line 437: | ||
===Calling debugregs=== | ===Calling debugregs=== | ||
As we have worked on these dap projects, the process of calling such debug subroutines has become simpler. With dap0, we had to have the following in our program: | As we have worked on these dap projects, the process of calling such debug subroutines has become simpler. With dap0, we had to have the following in our program: | ||
- | < | + | < |
| | ||
push TMP | push TMP | ||
- | |||
| | ||
push TMP | push TMP | ||
- | |||
| | ||
push TMP | push TMP | ||
- | |||
| | ||
</ | </ | ||
+ | Then later after the hlt, you'll always have the %include " | ||
+ | Concerning dap2, we have drastically simplified the process of debugging. All that is need is just one line, Not accounting for the include line. Put the following to use your debug registers subroutine: | ||
+ | |||
+ | <code asm> | ||
+ | call _debugregs | ||
+ | </ |