Skip to content

Instantly share code, notes, and snippets.

@Visgean
Created October 16, 2019 18:57
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save Visgean/5d8c4d76acfcdbd932c817ac7626e599 to your computer and use it in GitHub Desktop.
Save Visgean/5d8c4d76acfcdbd932c817ac7626e599 to your computer and use it in GitHub Desktop.

Rewrite:

  • save all S registers to stack! restore at the end of every function!
  • make sure that this is correct with debugger
    • set up breaking points before you jump to function
    • take screenshot of registers before
    • take screenshot of resigters after and compare them

Debugging:

  • check for every function
    • arguments are correct - if you are passing pointer check data on the pointer!
    • after the function returns
      • do we have same registers?
      • is our stack pointer the same as before? EXTREMELY IMPORTANT!
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment