Term Papers on Caculating Offsets from Term Papers Lab.
Below is a free excerpt of our term paper on Caculating Offsets
Introduction
This tutorial is more of a tip than a tutorial. It just explains how to calculate offsets for jumps and calls within the program you are patching.
Types of Jumps/Calls
Here I will just describe the different types of jumps and calls which you will come across:
Short Jumps
Short jumps be they conditional or unconditional jumps are 2 bytes long (or 1 nibble if your Californian ;-). These are relative jumps taken from the first byte after the two bytes of the jump. Using short jumps you can jump a maximum of 127 bytes forward and 128 bytes backwards.
Long Jumps
Long jumps if they are relative are 6 bytes long for conditional jumps and are 5 bytes long for unconditional jumps. For conditional jumps 2 bytes are used to identify that it is a long jump and what type of jump (je, jg, jns etc) it is. The other 4 bytes are used to show how far away the target location is relative to the first byte after the jump. In an unconditional jump only 1 byte is used to......
Join Now to view the rest of this term paper!
Members: Login to view this research paper.
Title: Caculating Offsets
Approximate Word Count: 919
Approximate Pages: 4 (250 words per double-spaced page)
With the Term Papers Lab Membership Pass, you get instant access to every essay on this site, including this essay on Caculating Offsets, for as long as you remain a member.
Other essays sites charge almost $100 for a single term paper. At Term Papers Lab, you can get instant access to over 100,000 research papers for as little as $29.95!



