Artifact 8cce61315b6c1c5ec45f8ddc6ccc2f12eb4b6d74b3f6daeff10a8b4d1e03a783:
- Executable file
r38/lisp/csl/cslbase/decoder.h
— part of check-in
[f2fda60abd]
at
2011-09-02 18:13:33
on branch master
— Some historical releases purely for archival purposes
git-svn-id: https://svn.code.sf.net/p/reduce-algebra/code/trunk/historical@1375 2bfe0521-f11c-4a00-b80e-6202646ff360 (user: arthurcnorman@users.sourceforge.net, size: 1191) [annotate] [blame] [check-ins using] [more...]
/* decoder.h Copyright (C) 2003-2006 Gil Dabah, http://ragestorm.net/distorm/ This library is licensed under the BSD license. See the file COPYING. */ #ifndef ___DECODER_H__ #define ___DECODER_H__ #include "diconfig.h" #include "wstring.h" typedef unsigned int _iflags; // DEFAULT instructions decoding mode. typedef enum {Decode16Bits = 0, Decode32Bits = 1, Decode64Bits = 2} _DecodeType; typedef OFFSET_INTEGER _OffsetType; typedef struct { _WString mnemonic; _WString operands; _WString instructionHex; unsigned int size; _OffsetType offset; } _DecodedInst; typedef struct { const unsigned char* code; long codeLen; _OffsetType codeOffset; } _CodeInfo; typedef enum {DECRES_NONE, DECRES_SUCCESS, DECRES_MEMORYERR, DECRES_INPUTERR} _DecodeResult; _DecodeResult internal_decode(_OffsetType codeOffset, const unsigned char* code, long codeLen, _DecodeType dt, _DecodedInst result[], unsigned long maxResultCount, unsigned long* usedEntriesCount); _DecodeType ADDR_SIZE_AFFECT(_DecodeType dt, _iflags totalPrefixes); _DecodeType OP_SIZE_AFFECT(_DecodeType dt, _iflags totalPrefixes, unsigned char rex); #endif // ___DECODER_H__