notes:comporg:spring2024:projects:dapx
Differences
This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revisionNext revision | Previous revisionLast revisionBoth sides next revision | ||
notes:comporg:spring2024:projects:dapx [2024/03/24 19:42] – [Debug Registers] wgates1 | notes:comporg:spring2024:projects:dapx [2024/03/24 19:48] – [Debug Registers] wgates1 | ||
---|---|---|---|
Line 435: | Line 435: | ||
===Printing registers=== | ===Printing registers=== | ||
+ | |||
+ | ===Debugging our debugregs Subroutine=== | ||
+ | Trying to get your debugregs to have the correct output is challenging, | ||
+ | |||
+ | <code asm> | ||
+ | mov R0, 0x00000000 | ||
+ | mov R1, 0x00000001 | ||
+ | mov R2, 0x00000002 | ||
+ | mov R3, 0x00000003 | ||
+ | mov R4, 0x00000004 | ||
+ | mov R5, 0x00000005 | ||
+ | </ | ||
+ | |||
+ | You repeat this above process for registers from 0 to 13. | ||
+ | |||
+ | |||
+ | |||
===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 | ||
Line 450: | Line 467: | ||
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: | 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 | ||
+ | </ |
notes/comporg/spring2024/projects/dapx.txt · Last modified: 2024/03/24 19:49 by wgates1