Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- Add breakpoint:
- - addBreakpoint(address)
- Remove breakpoint:
- - restore 4 bytes
- - remove breakpoint + 4 bytes from the breakpoint list
- Step:
- - inject temp breakpoints
- - set stepping bit
- - return to code
- Breakpoint handler:
- - eventually restore temp breakpoints
- - if stepping bit set:
- - jump to code main to continue stepping
- - else:
- - restore breakpoint call
- - if it was a fixed breakpoint:
- - open UI
- - else:
- - return to code
- Inject temp breakpoints:
- - addBreakpoint(PC + assemly line length)
- - if it's a If, While, Repeat or For(: ?????
- - addBreakpoint(jump address)
- - else:
- - get return address
- - if address > RAM_START:
- - addBreakpoint(return address)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement