* [libintel64asm] Initial Support for FreeBSD clang (Implicit Declaration Function Warning)
#include"../include/drd64_types.h"
+#include"drd64_intel64_dbtype.h"
+#include"drd64_intel64_disasm.h"
+#include"drd64_intel64_db.h"
+#include"drd64_intel64_dbfile.h"
+#include"drd64_intel64_dbcommon.h"
+#include"drd64_intel64_common.h"
+#include"drd64_intel64_asm.h"
+#include"drd64_intel64_asm_system.h"
+#include"drd64_intel64_error.h"
+
+
#define isBitFlag(m,n) (((unsigned int)(((unsigned int)(m))&((unsigned int)(n))))==(n))
----------------------------------------------------------------------*/
#include"drd64_intel64.h"
-#include"drd64_intel64_dbtype.h"
-#include"drd64_intel64_db.h"
-#include"drd64_intel64_asm.h"
-#include"drd64_intel64_disasm.h"
-#include"drd64_intel64_asm_system.h"
#define DRD64_SRC_LIBINTEL64ASM_FUNC
#include"../include/libintel64asm.h"
Comment: none
----------------------------------------------------------------------*/
-#include"drd64_intel64.h"
-#include"drd64_intel64_dbtype.h"
-#include"drd64_intel64_asm.h"
-#include"drd64_intel64_disasm.h"
#define DRD64_SRC_INTEL64_ASM_SYSTEM
-#include"drd64_intel64_asm_system.h"
+#include"drd64_intel64.h"
static Drd64_Intel64_OperandNode *pp_operandnode_base;
static int i_operandnode_nums;
/*----------------------------------------------------------------------
----------------------------------------------------------------------*/
-EXTERN int
+DRD64_INTEL64_ASM_SYSTEM_EXTERN
+int
Drd64_Intel64_InitAssembleSystem(
void)
{
/*----------------------------------------------------------------------
----------------------------------------------------------------------*/
-EXTERN int
+DRD64_INTEL64_ASM_SYSTEM_EXTERN
+int
Drd64_Intel64_TermAssembleSystem(
void)
{
/*----------------------------------------------------------------------
----------------------------------------------------------------------*/
-EXTERN Drd64_Intel64_OperandNode *
+DRD64_INTEL64_ASM_SYSTEM_EXTERN
+Drd64_Intel64_OperandNode *
Drd64_Intel64_AllocOperandNode(
void )
{
/*----------------------------------------------------------------------
----------------------------------------------------------------------*/
-EXTERN int
+DRD64_INTEL64_ASM_SYSTEM_EXTERN
+int
Drd64_Intel64_ResetOperandNode_Memory(
void )
{
----------------------------------------------------------------------*/
#ifndef DRD64_HEADER_INTEL64_ASM_SYSTEM
+#define DRD64_HEADER_INTEL64_ASM_SYSTEM
#ifndef DRD64_SRC_INTEL64_ASM_SYSTEM
- #define EXTERN extern
+ #define DRD64_INTEL64_ASM_SYSTEM_EXTERN extern
#else
- #define EXTERN
+ #define DRD64_INTEL64_ASM_SYSTEM_EXTERN
#endif
-EXTERN int
- Drd64_Intel64_InitAssembleSystem(
- void);
-
-EXTERN int
- Drd64_Intel64_TermAssembleSystem(
- void);
-
-EXTERN Drd64_Intel64_OperandNode *
- Drd64_Intel64_AllocOperandNode(
- void);
-
-EXTERN int
- Drd64_Intel64_ResetOperandNode_Memory(
- void);
+DRD64_INTEL64_ASM_SYSTEM_EXTERN
+ int Drd64_Intel64_InitAssembleSystem(void);
+DRD64_INTEL64_ASM_SYSTEM_EXTERN
+ int Drd64_Intel64_TermAssembleSystem(void);
+DRD64_INTEL64_ASM_SYSTEM_EXTERN
+ Drd64_Intel64_OperandNode *Drd64_Intel64_AllocOperandNode(void);
+DRD64_INTEL64_ASM_SYSTEM_EXTERN
+ int Drd64_Intel64_ResetOperandNode_Memory(void);
#endif /* DRD64_HEADER_XXX */
Comment: none
----------------------------------------------------------------------*/
-#include"drd64_intel64.h"
#define DRD64_SRC_INTEL64_COMMON
+#include"drd64_intel64.h"
#include"drd64_intel64_common.h"
/*----------------------------------------------------------------------
-static int
+int
Drd64_DisAsmIntel64_ExtendValueBit(
: Extend Value to Bits
int i_bit, : [opt] bits
int i_flag_sign) : [opt] Flag Sign
----------------------------------------------------------------------*/
-EXTERN int
+DRD64_INTEL64_COMMON_EXTERN int
Drd64_Intel64_Common_ExtendValueBit(
Value *p_val,
int i_bit,
----------------------------------------------------------------------*/
#ifndef DRD64_HEADER_INTEL64_COMMON
+#define DRD64_HEADER_INTEL64_COMMON
#ifndef DRD64_SRC_INTEL64_COMMON
- #define EXTERN extern
+ #define DRD64_INTEL64_COMMON_EXTERN extern
#else
- #define EXTERN
+ #define DRD64_INTEL64_COMMON_EXTERN
#endif
-EXTERN int
- Drd64_Intel64_Common_ExtendValueBit(
- Value *p_val,
- int i_bit,
- int i_flag_sign);
+DRD64_INTEL64_COMMON_EXTERN
+ int Drd64_Intel64_Common_ExtendValueBit(
+ Value *p_val, int i_bit, int i_flag_sign);
#endif /* DRD64_HEADER_XXX */
Comment: none
----------------------------------------------------------------------*/
+#define DRD64_SRC_INTEL64_DB
#include"drd64_intel64.h"
-#include"drd64_intel64_dbtype.h"
-#include"drd64_intel64_db.h"
-#include"drd64_intel64_dbfile.h"
-#include"drd64_intel64_asm.h"
-#include"drd64_intel64_disasm.h"
-#include"drd64_intel64_dbcommon.h"
/* Make Hash Table */
/* Access & Search Function */
int i_maxstr ) : Dest. Buf. Max Size
-----------------------------------------------------------------------*/
+DRD64_INTEL64_DB_EXTERN
int
Drd64_Intel64db_GetRegisterString(
Byte *p_regstr,
Drd64_Intel64_AnalyzePacket *p_analyze)
: [Dest][Src] Analyze Packet
-----------------------------------------------------------------------*/
+DRD64_INTEL64_DB_EXTERN
Byte
Drd64_Intel64db_GetByteCodeType(
Drd64_Intel64_AnalyzePacket *p_analyze)
Byte b_bits) : [opt] Judge Bit Mode (32/64)
-----------------------------------------------------------------------*/
+DRD64_INTEL64_DB_EXTERN
Byte
Drd64_Intel64db_GetBytePrefixType(
Byte b_code,
#ifndef DRD64_HEADER_INTEL64_DB
#define DRD64_HEADER_INTEL64_DB
-#include"drd64_intel64.h"
-#include"drd64_intel64_dbtype.h"
-
-
typedef struct {
int i_num;
Byte b_prefix;
Byte b_hash;
} Drd64_Intel64db_Record;
+#ifdef DRD64_SRC_INTEL64_DB
+ #define DRD64_INTEL64_DB_EXTERN
+#else
+ #define DRD64_INTEL64_DB_EXTERN extern
+#endif
+DRD64_INTEL64_DB_EXTERN
+ int Drd64_Intel64db_GetRegisterString( Byte *p_regstr, Word w_regid, int i_maxstr );
+DRD64_INTEL64_DB_EXTERN
+ Byte Drd64_Intel64db_GetByteCodeType( Drd64_Intel64_AnalyzePacket *p_analyze);
+
#endif /* DRD64_HEADER_INTEL64_DB */
Comment: none
----------------------------------------------------------------------*/
-#include"drd64_intel64.h"
-#include"drd64_intel64_dbtype.h"
-#include"drd64_intel64_dbfile.h"
#define DRD64_SRC_INTEL64_DBCOMMON
-#include"drd64_intel64_dbcommon.h"
-#include"drd64_intel64_db.h"
+#include"drd64_intel64.h"
/*----------------------------------------------------------------------
int
Drd64_Intel64_DBCommon_CalcHashValue(
char *pstr_value )
----------------------------------------------------------------------*/
-EXTERN int
+DRD64_INTEL64_DBCOMMON_EXTERN int
Drd64_Intel64_DBCommon_CalcHashValue(
char *pstr_value )
{
#ifndef DRD64_HEADER_INTEL64_DBCOMMON
#ifndef DRD64_SRC_INTEL64_DBCOMMON
- #define EXTERN extern
+ #define DRD64_INTEL64_DBCOMMON_EXTERN extern
#else
- #define EXTERN
+ #define DRD64_INTEL64_DBCOMMON_EXTERN
#endif
-EXTERN int
- Drd64_Intel64_DBCommon_CalcHashValue(
- char *pstr_value );
+DRD64_INTEL64_DBCOMMON_EXTERN
+ int Drd64_Intel64_DBCommon_CalcHashValue(char *pstr_value );
#endif /* DRD64_HEADER_XXX */
#define DRD64_HEADER_INTEL64DBFILE
#include"drd64_intel64.h"
-#include"drd64_intel64_db.h"
#define DRD64_INTEL64DB_HASH_MUL 137
#define DRD64_INTEL64DB_HASH_RADIX 69
Comment: none
----------------------------------------------------------------------*/
-#include"drd64_intel64.h"
-#include"drd64_intel64_dbtype.h"
-#include"drd64_intel64_asm.h"
-#include"drd64_intel64_disasm.h"
#define DRD64_SRC_LIBINTEL64ASM_FUNC
+#include"drd64_intel64.h"
#include"../include/libintel64asm.h"
----------------------------------------------------------------------*/
#include"drd64_intel64.h"
-#include"drd64_intel64_disasm.h"
-#include"drd64_intel64_dbtype.h"
-#include"drd64_intel64_db.h"
-#include"drd64_intel64_common.h"
/*#include"drd64_intel64_debug.h"*/
#define DRD64_SRC_LIBINTEL64ASM_FUNC
#include"../include/libintel64asm.h"
#ifndef DRD64_HEADER_INTEL64_DISASM
#define DRD64_HEADER_INTEL64_DISASM
-#include"drd64_intel64_dbtype.h"
-#include"drd64_intel64_db.h"
-#include"drd64_intel64_asm.h"
-
typedef struct {
unsigned rm : 3;
unsigned reg : 3;
Comment:
----------------------------------------------------------------------*/
-#include"drd64_intel64.h"
#define DRD64_SRC_INTEL64_ERROR
-#include"drd64_intel64_error.h"
+#include"drd64_intel64.h"
Drd64_Intel64_ErrorUnion drd64_error;
#define DRD64_HEADER_INTEL64_ERROR
#ifndef DRD64_SRC_INTEL64_ERROR
- #define EXTERN extern
+ #define DRD64_INTEL64_ERROR_EXTERN extern
#else
- #define EXTERN
+ #define DRD64_INTEL64_ERROR_EXTERN
#endif
typedef struct {
push rax
cmp rax,rbx
jb 02h
- sldt [rbx+02h]
+ sldt word [rbx+02h]
psrlq mm0, 03h
movq mm1,mm0
movd mm0,[rcx+04h]
mov cr2, rsi
mov dr3, r11
- sldt [ebx*8+esp+02h]
+ sldt word [ebx*8+esp+02h]
movd mm0,[ecx+04h]
movsd xmm0, [edx+ebx+12h]
lss eax, [12345678h]