Converting 2 x86 opcodes to AArch64 (Switch) - need a bit of help

Maq47

Lord of Pyro
OP
Member
Joined
Jan 7, 2012
Messages
1,270
Trophies
1
Location
Your basement
Website
idont.have.one
XP
3,349
Country
United States
So, I'm trying to port a CheatEngine cheat table code to the Switch version of the game, and found out that the 2 opcodes that revolve around the cheat need to be converted to 2 or 3 opcodes EACH for the Switch. The problem I am having is figuring out how the switch does a store instruction of an immediate value to the address pointed to by a register PLUS an immediate value, like the below:

str 0x3DA3D70A, [w1 + 0x00000330]

The above code isn't valid, presumably because I formatted it wrong, so I am trying to get the hexadecimal representation of this. I have found an article for Cortex A-series CPUs online, which mentions the possibility of placing an immediate value into an address using store opcodes, but looking at other instruction set lists, I cannot find an opcode that does it. The closest that does anything like it doesn't allow any immediate values whatsoever, only using straight registers. I for certain need at least either an immediate value to be stored or an immediate value to be added to the destination address register. Is there no way to get that? If not, making this code could very well be a pipe dream for me without using IDA Pro or Ghidra on the executable and trying to search for specific instruction patterns, because if I have to split this instruction into more than 2 opcodes, it is unlikely that they will be consecutive in the executable. @FAST6191 I saw your post regarding AArch64 ASM from 2022 in the Vita section, maybe you could weigh in? You seem to know your stuff.

P.S.: The 2 x86 opcodes that I am trying to convert are the following:

Code:
[rbx + 00000330], 3DA3D70A
[rbx + 0000034C], 00000002
Their hexadecimal representation is the following:

Code:
C7 83 30 03 00 00 0A D7 A3 3D C7 83 4C 03 00 00 02 00 00 00
 

Site & Scene News

Popular threads in this forum

General chit-chat
Help Users
  • BigOnYa @ BigOnYa:
    Towelie runs my farm, he's awesome.
  • SylverReZ @ SylverReZ:
    @K3Nv2, Polly is still around from what I've heard.
  • K3Nv2 @ K3Nv2:
    @SylverReZ, is Pollys alt I knew it
  • BigOnYa @ BigOnYa:
    Yea I see him every once whi!e , incognito
  • SylverReZ @ SylverReZ:
    @K3Nv2, I'm not him. Keep looking.
    +1
  • K3Nv2 @ K3Nv2:
    Still don't know why he left unless someone really hurt his feelings
  • K3Nv2 @ K3Nv2:
    Don't know why people get so emotional online just get over it ffs
    +2
  • BigOnYa @ BigOnYa:
    He was the ass of gbatemp, everyone knocked on him, I honestly felt bad, even though I was guilty myself, but he egged it all on himself,
  • BigOnYa @ BigOnYa:
    But he still here, but under dif name, he pm me sometimes still even.
  • K3Nv2 @ K3Nv2:
    It's like they think we'll be in their bed pissing on it the next day
  • BigOnYa @ BigOnYa:
    I feel like gbatemp should make t-shirts or memorabilia to remember the lost ones. I bet the Polly shirts would sell out quick.
  • K3Nv2 @ K3Nv2:
    Nah that could actually bring lawsuits
  • K3Nv2 @ K3Nv2:
    Tempsuits
  • BigOnYa @ BigOnYa:
    PollySuits
  • BigOnYa @ BigOnYa:
    Your correct, Somebody would be guilty and there would be riots, then they storm the gbatemp capitol,
  • K3Nv2 @ K3Nv2:
    Online or not there are still certain rights that judges would have no issue handing out a warrant over
  • K3Nv2 @ K3Nv2:
    Just look at Kim dotcom
  • BigOnYa @ BigOnYa:
    Honestly I'm scared to, from you, but ok, lemme turn on vpn, virtual machine, private browser first
  • K3Nv2 @ K3Nv2:
    Remember that Alexa robot I gifted you
  • K3Nv2 @ K3Nv2:
    And that laptop Webcam you never tapped up
  • BigOnYa @ BigOnYa:
    That robot is here somewhere, I hear it moving around at night, but I haven't seen it for months.
  • BigOnYa @ BigOnYa:
    Oh that laptop I give to ancientboi, so you been watching him for months, and he's been watching you
  • K3Nv2 @ K3Nv2:
    Oh good more than enough material for the fbi
    +1
  • BigOnYa @ BigOnYa:
    Damn its 5 in morn, I gotta Go wake your mum and send her to work. Check ya later.
    AncientBoi @ AncientBoi: lol