Jump to content

Return true in armv64 & bx lr


Go to solution Solved by Rook,

12 posts in this topic

Recommended Posts

Posted

Hey,

 

So in armv7 I had this code:

PUSH            {R4,R5,R7,LR}
ADD             R7, SP, #8

I changed it to

MOV R0, #1

BX LR

 

Now I wanted to do this on amrv64 too,

So I looked up some tutorials & I thought this would be the right code to do:

MOV W0, #1

RET

This crashed the game once I selected the item.

MOV X0, #1

RET

This didn't had any effect.

 

Anyone knows what I do wrong? xD

 

Thankyou in advance!

Posted
16 minutes ago, tabloucas said:

nop to 00000000  :turned:

Why would that return to true?

Wouldn't that skip the whole function?

Posted
2 minutes ago, tabloucas said:

find CMP and change 1 to 0 

1 = true   

0 = false


CMP ============ #0
or
CMP ============ #1

Yea could do that.

But there is no CMP in the funtion

Posted
30 minutes ago, tabloucas said:

cmp  see up or down in ida

change


MOV X0, #1

to


MOV X0, #0

There is also no, MOV X0, #1 in the function 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