Skip to content
Guest Big Announcement

Return true in armv64 & bx lr

Featured Replies

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!

Solved by Rook

  • Author
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

  • Author
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

Featured Content

Search

Search

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.