CACAO
Macros | Functions | Variables
disass.cpp File Reference

Go to the source code of this file.

Macros

#define ITYPE_UNDEF   0 /* undefined instructions (illegal opcode) */
 
#define ITYPE_JMP   1 /* jump instructions */
 
#define ITYPE_MEM   2 /* memory instructions */
 
#define ITYPE_FMEM   3 /* floating point memory instructions */
 
#define ITYPE_BRA   4 /* branch instructions */
 
#define ITYPE_OP   5 /* integer instructions */
 
#define ITYPE_FOP   6 /* floating point instructions */
 

Functions

u1disassinstr (u1 *code)
 
void disassemble (u1 *start, u1 *end)
 

Variables

struct {
   char *   name
 
   int   itype
 
ops []
 
struct {
   u2   op
 
   u2   fun
 
   char *   name
 
op3s []
 

Macro Definition Documentation

#define ITYPE_BRA   4 /* branch instructions */

Definition at line 52 of file disass.cpp.

#define ITYPE_FMEM   3 /* floating point memory instructions */

Definition at line 51 of file disass.cpp.

#define ITYPE_FOP   6 /* floating point instructions */

Definition at line 54 of file disass.cpp.

#define ITYPE_JMP   1 /* jump instructions */

Definition at line 49 of file disass.cpp.

#define ITYPE_MEM   2 /* memory instructions */

Definition at line 50 of file disass.cpp.

#define ITYPE_OP   5 /* integer instructions */

Definition at line 53 of file disass.cpp.

#define ITYPE_UNDEF   0 /* undefined instructions (illegal opcode) */

Definition at line 48 of file disass.cpp.

Function Documentation

void disassemble ( u1 start,
u1 end 
)

Definition at line 403 of file disass.cpp.

u1* disassinstr ( u1 code)

Definition at line 251 of file disass.cpp.

Variable Documentation

u2 fun

Definition at line 129 of file disass.cpp.

int itype

Definition at line 59 of file disass.cpp.

char* name

Definition at line 59 of file disass.cpp.

u2 op

Definition at line 129 of file disass.cpp.

struct { ... } op3s[]
struct { ... } ops[]