Go Back   FileForums > Games > Game Coders
Register FAQ Community Calendar Today's Posts Search

 
 
Thread Tools Search this Thread Display Modes
Prev Previous Post   Next Post Next
  #2  
Old 09-10-2007, 09:43
TippeX's Avatar
TippeX TippeX is offline
zeroes and ones.....
 
Join Date: Jan 2003
Posts: 3,842
Thanks: 2
Thanked 33 Times in 23 Posts
TippeX is on a distinguished road
you're replacing say...
mov [esi+054h], eax
with a call to your caved code right

mov [esi+54h], eax is indeed 3 bytes - you should have seen this in the disassembly
its 89 46 54

you need to grab the next line(s) too, and also copy that to your cave code
until you have 5 (or more bytes) to work in

say the code is

89 46 54 mov [esi+54], eax
33 c0 xor eax, eax
40 inc eax

you need 5 bytes to put in the call, so that will be in place of the 89 46 54 33 c0
it'll be come e8 xx xx xx xx (call to your cave)

your code will then have...
mov [esi+54], 1 (your replacment)
then the other copied lines (33 c0 in this example)
and then a ret...

makes sense?
__________________
bleh
DO NOT PM me with questions, leave that in the forums...ESPECIALLY if i dont know you...
Reply With Quote
 


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
suggestion anybody... acon PC Games 0 25-06-2002 23:46
Need suggestion for the best racing/rally games for LAN multiplayer... NabiRonK PC Games 5 14-06-2002 13:03
Any suggestion?? Lucano PS2 Games 3 17-02-2002 20:00
Suggestion for a new burner SepticDeath CD/DVD-Writers 8 23-04-2001 13:16
a littel HINT to everyone that has waste alot of CD and cant get the burning right...... Mantus DC Games 0 09-12-2000 09:51



All times are GMT -7. The time now is 21:24.


Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2026, vBulletin Solutions Inc.
FileForums @ https://fileforums.com