Jump to content

15 posts in this topic

Recommended Posts

Posted

Was wondering how do you write in ms hacking for a patcher with "IF STATMENTS".

 

 

Offset 0x12345
Value = 10

 

So what I want to know is how do you write 'if 0x12345 value = 10 then set value = 9999 else leave it as original.'

 

I needed this because the value will only show correctly during stage. If I'm in menu then the value change to a random float number.

Posted

Was wondering how do you write in ms hacking for a patcher with "IF STATMENTS".

 

 

Offset 0x12345
Value = 10
 

So what I want to know is how do you write 'if 0x12345 value = 10 then set value = 9999 else leave it as original.'

 

I needed this because the value will only show correctly during stage. If I'm in menu then the value change to a random float number.

I'm 99% sure that you would rewrite the function like this:

 

MOV R0, #10
IT EQQQ
MOVEQ R0, #100
MULEQ R0, R0 //for 10,000
BXEQ LR
MOV R0, #10
BX LR
Posted

hold it right there

where's da cmp?

IT EQQQ acts as the CMP because there was more than one instruction that would have to be ran

Posted

can it be rewritten with code injection instead? I hate to go through code caving...

Yes it can :) But I have no idea what any of the hex would be lol

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
  • Create New...

Important Information

We would like to place cookies on your device to help make this website better. The website cannot give you the best user experience without cookies. You can accept or decline our cookies. You may also adjust your cookie settings. Privacy Policy - Guidelines