News:

MASM32 SDK Description, downloads and other helpful links
MASM32.com New Forum Link
masmforum WebSite

Toggling bits in FLAGS ?

Started by Slugsnack, June 08, 2008, 12:50:46 PM

Previous topic - Next topic

Slugsnack

I was curious as to how I might read and write bits from the EFLAGS register after a certain instruction had executed (at a given virtual address).

I was thinking GetThreadContext/SetThreadContext, have I got my head turned in the right direction ?

jj2007


Slugsnack

Thanks, I have not come across bit instructions like this before so I'll need to do a bit of reading  ::)

Do you have any idea how I could do this for another thread without "hooking" it with a JMP ?

jj2007


Slugsnack

Yeap, that's exactly what I want to reproduce.  Olly is able to step onto any instruction and then you can change flag states at that point.  I was hoping to do the same thing but not sure how to go about doing it.