4 #include "../../misc.h"
9 * out : The file pointer that we write to (the output file to intel asm)
10 * cpu_buffer : The memory buffer we have our binary code that we whant convert
11 * cpu_pos : Current positions in the cpu_buffer
12 * cpu_size : The memory size of the cpu_buffer
13 * BaseAddress : The base address you whant the binay file should run from
14 * cpuarch : if it exists diffent cpu from a manufactor like pentium,
15 * pentinum-mmx so on, use this flag to specify which type
16 * of cpu you whant or do not use it if it does not exists
17 * other or any sub model.
19 * mode : if we should run disambler of this binary or
20 * translate it, Disambler will not calc the
21 * the row name right so we simple give each
22 row a name. In translations mode we run a
23 * analys so we getting better optimzing and
24 * only row name there we need.
25 * value for mode are :
27 * 1 = translate mode intel
31 * value -1 : unimplement
32 * value 0 : wrong opcode or not vaild opcode
33 * value +1 and higher : who many byte we should add to cpu_pos
36 CPU_INT
ARM_( FILE *out
, CPU_BYTE
* cpu_buffer
, CPU_UNINT cpu_pos
,
37 CPU_UNINT cpu_size
, CPU_UNINT BaseAddress
, CPU_UNINT cpuarch
)
41 * ConvertBitToByte() is perfect to use to get the bit being in use from a bit array
42 * GetMaskByte() is perfect if u whant known which bit have been mask out
43 * see M68kopcode.c and how it use the ConvertBitToByte()
46 fprintf(out
,"Line_0x%8x :\n",BaseAddress
+ cpu_pos
);
48 printf(";Add unimplement\n");