Skip to content

make ASM hack with X30 match

tomvita edited this page Apr 17, 2023 · 4 revisions

Goto ASM composer then load "x30.txt" then use "X30_cmp" to insert the last X30 number captured by gen2 menu.

Here is a sample:

  • stp x25, x26, [sp,#-0x90]
  • ldr w25,e
  • lsl w26,w30,16
  • cmp w25, w26
  • b.ne original
  • ( put you hack here, you may also want to put something here to watch to check that the code did the correct screening )
  • original: {original}
  • ldp x25, x26, [sp,#-0x90]
  • return: b code1+4
  • e:.word 0x2e780000