Page 1 of 1

Memory functions with hexadecimal

Posted: Sun Mar 27, 2011 10:52 am
by Tsutomu
We have examples how to use memoryreadX and memorywriteX with int float etc. values
How do we work with hex?

For.ex. I have an ASM instruction: 83 89 B4 00 00 00
I want to nop it all to look like this 90 90 90 90 90 90

So it's a 6-byte on address 0x00449620 static addr.

Do i just turn this into DEC and write over?
or do i do byte by byte: 90 hex NOP = 144 dec
So i change all 6 bytes separately with 144. Will it work?
Which is the most elegant way to do this?

edit: I tried writing every byte separately as int but game crashes.
Hmm... maybe if i try writing as Byte...

Re: Memory functions with hexadecimal

Posted: Sun Mar 27, 2011 11:20 am
by Tsutomu
SOLVED (writeByte)