Hi everyone,
I disassembled a .bin file and I use EASy68K to try to understand this assembled code but do you know if it is possible to decompile this code to an higher level like C++ ?
If it is not possible I will continue to try to understand this assembled code. Here below a piece of the subroutine "subroutine_1BBE0". I have two questions about it :
- I don't understand the use of "arg_2 = 6" and "arg_7 = $B" in the code. And I don't succeed in testing this code in EASy68K. Can someone explain the use of them and what "move.w arg_2(sp),d0" does ?
- EASy68K doesn't seem to recognize "tbls" instruction. Is it possible to simulate this instruction with EASy68K ?
Code:
ROM:0001BBE0 subroutine_1BBE0:
ROM:0001BBE0
ROM:0001BBE0 arg_2 = 6
ROM:0001BBE0 arg_7 = $B
ROM:0001BBE0
ROM:0001BBE0 clr.l d0
ROM:0001BBE2 clr.w d1
ROM:0001BBE4 move.w arg_2(sp),d0
ROM:0001BBE8 lsl.w #3,d0
ROM:0001BBEA tbls.w ($4A0BE).l,d0
ROM:0001BBF2 move.b arg_7(sp),d1
ROM:0001BBF6 cmpi.b #2,d1
ROM:0001BBFA beq.w loc_1BC1E
........................
Thanks for all,
Vincent