View Full Version : Masm32

08-10-2005, 09:46 PM
Ok...I am trying to learn ASM code and I am having trouble finding one thing. I know the 'poke' function with TMK but what is the function to change the value at an offset?

08-10-2005, 10:34 PM
Poke (Offset) (Value) I believe. Iam a n00b too. :lol:

08-10-2005, 10:46 PM
lol I'll try it :D I am gonna try looking at OllyDbg code and try to find something.

08-10-2005, 10:55 PM

invoke WriteMem, 004BD756h, addr UnitSuicidOn1, 11

08-10-2005, 10:56 PM
Poke (Offset) (Value). All you are going to use olly for is to find the value for changing ADD to SUB or vice versa.

Example. Say 00456C7H is the offset for minusing minerals. In TMK you type :
" Poke 00456C7H 00 00 00 00 00 " to NOP the offset. I hope this helps.

08-10-2005, 11:01 PM
Oh coding makes me so confused

08-10-2005, 11:08 PM
Sorry that example was a little off....

UnitSuicidOn1 db 0C6h,05h,73h,0A0h,6Ah,00h,00h,90h,90h,90h,90h
invoke WriteMem, 004BD756h, addr UnitSuicidOn1, 11

This is invoke the WriteMem function, this will replace whatever data is at that specific offset, with predefined values in the .data.