| CodeGuru Home | VC++ / MFC / C++ | .NET / C# | Visual Basic | Newsletters | VB Forums | Developer.com |
|
|||||||
| Assembly Questions and Answers for Assembly here! |
![]() |
|
|
Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
#1
|
|||
|
|||
|
Hello,
is there a way to change the register value of a running program? example: (from a debugger) 7C912927 84E4 TEST AL,AL AL=0 and i want to change it to 1 and freeze the value so it always stay to 1. It's possible to do it with a debugger but i would like to learn how to code that in c++ Any advices, links? Thx |
|
#2
|
|||
|
|||
|
Re: Change the value of a register?
I don't understand what you mean. Registers can't be 'frozen' to a specific value, especially one that is used for return values (al).
The easiest way to preserve a register value is to constantly push and pop the register before and after any code that changes it. Alternatevely, you can store it into a variable and recover it later. |
|
#3
|
||||
|
||||
|
Re: Change the value of a register?
Quote:
__________________
I am not offering technical guidiance via email or IM Come on share your photo with us! CG members photo album! Use the Code Tags! |
|
#4
|
|||
|
|||
|
Re: Change the value of a register?
Quote:
psss you hex it from the exe file.
__________________
I never travel without my diary. One should always have something sensational to read. |
![]() |
| Bookmarks |
|
||||||
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|