PDA

View Full Version : Masm32



Pananoia-Agent
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?

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

Pananoia-Agent
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.

gamepin126
08-10-2005, 10:55 PM
Example:



invoke WriteMem, 004BD756h, addr UnitSuicidOn1, 11

Element
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.

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

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



.Data
UnitSuicidOn1 db 0C6h,05h,73h,0A0h,6Ah,00h,00h,90h,90h,90h,90h
.Code
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.