유니티 해킹에 사용되는 C#에서 Asembly 변환
외국 모 커뮤니티에 누군가 깔끔하게 정리해놔서 가져왔습니다.
간단한것만 올려놓겠습니다 ~~
c# |
Asembly |
private bool True() { return true; } |
MOV R0, #1 BX LR hex -> 01 00 A0 E3 1E FF 2F E1 |
private bool False() { return false; } |
MOV R0, #0 BX LR hex -> 00 00 A0 E3 1E FF 2F E1 |
private int pInt() { return 999; } |
MOV R0, #999 BX LR hex -> E7 03 00 E3 1E FF 2F E1 |
private float pFloat() { return 999f; } |
MOV R0, #0x447A BX LR hex -> 7A 04 04 E3 1E FF 2F E1 |
private void setFieldF() { fieldF = 1000F; } | MOV R1, #0x447A STR R1, [R0,#0x10] // replace "0x10" with your field offset inside of dump.cs BX LR hex -> 7A 14 04 E3 10 10 80 E5 1E FF 2F E1 |
private void setFieldI() { fieldI = 1000; } | MOV R1, #1000 STR R1, [R0,#0x14] // replace "0x14" with your field offset inside of dump.cs BX LR |
private string Param1(string one) { return one; } | MOV R0, R1 BX LR hex -> 01 00 A0 E1 1E FF 2F E1 |