Memory functions with hexadecimal

Discuss, ask for help, share ideas, give suggestions, read tutorials, and tell us about bugs you have found with MicroMacro in here.

Do not post RoM-Bot stuff here. There is a subforum for that.
Forum rules
This is a sub-forum for things specific to MicroMacro.

This is not the place to ask questions about the RoM bot, which uses MicroMacro. There is a difference.
Post Reply
Message
Author
User avatar
Tsutomu
Posts: 77
Joined: Thu Mar 24, 2011 1:50 am

Memory functions with hexadecimal

#1 Post by Tsutomu » Sun Mar 27, 2011 10:52 am

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

User avatar
Tsutomu
Posts: 77
Joined: Thu Mar 24, 2011 1:50 am

Re: Memory functions with hexadecimal

#2 Post by Tsutomu » Sun Mar 27, 2011 11:20 am

SOLVED (writeByte)

Post Reply

Who is online

Users browsing this forum: No registered users and 3 guests