User Tools

Site Tools


notes:comporg:spring2025:projects:dapx

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
notes:comporg:spring2025:projects:dapx [2025/03/20 03:14] – [Debug Registers] tkastne1notes:comporg:spring2025:projects:dapx [2025/03/20 03:15] (current) – [Debug Registers] tkastne1
Line 242: Line 242:
  
 Assuming we push the register 0-13 directly after saving the base pointer we can do the following to get R0: Assuming we push the register 0-13 directly after saving the base pointer we can do the following to get R0:
 +
 <code> <code>
 mov   R0,   [BP - 1] ; Get the value of R0 mov   R0,   [BP - 1] ; Get the value of R0
Line 251: Line 252:
 call  _debug         ; Print out the value of R0 wherever we want call  _debug         ; Print out the value of R0 wherever we want
 </code> </code>
 +
 +This process can be repeated for all registers
  
 ===Debugging our debugregs Subroutine=== ===Debugging our debugregs Subroutine===
notes/comporg/spring2025/projects/dapx.1742440471.txt.gz · Last modified: 2025/03/20 03:14 by tkastne1