I've made a simple program and found a couple of bugs in it. Here is my question.
1.) How do I calculate the patch offset?
2.) How do I write to that offset?