Advertisement
PT_

Untitled

PT_
Sep 1st, 2018
198
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.71 KB | None | 0 0
  1. Add breakpoint:
  2. - addBreakpoint(address)
  3.  
  4. Remove breakpoint:
  5. - restore 4 bytes
  6. - remove breakpoint + 4 bytes from the breakpoint list
  7.  
  8. Step:
  9. - inject temp breakpoints
  10. - set stepping bit
  11. - return to code
  12.  
  13. Breakpoint handler:
  14. - eventually restore temp breakpoints
  15. - if stepping bit set:
  16. - jump to code main to continue stepping
  17. - else:
  18. - restore breakpoint call
  19. - if it was a fixed breakpoint:
  20. - open UI
  21. - else:
  22. - return to code
  23.  
  24. Inject temp breakpoints:
  25. - addBreakpoint(PC + assemly line length)
  26. - if it's a If, While, Repeat or For(: ?????
  27. - addBreakpoint(jump address)
  28. - else:
  29. - get return address
  30. - if address > RAM_START:
  31. - addBreakpoint(return address)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement