Added armbe support to MSVC branch. (#801)
This commit is contained in:

committed by
Nguyen Anh Quynh

parent
dcccab5a75
commit
d167f1a27a
@ -1,30 +1,10 @@
|
||||
/* Unicorn Emulator Engine */
|
||||
/* By zhangwm, 2017 */
|
||||
|
||||
/* Sample code to demonstrate how to emulate ARM code */
|
||||
/* Sample code to demonstrate how to emulate ARM Big Endian code */
|
||||
|
||||
// windows specific
|
||||
#ifdef _MSC_VER
|
||||
#include <io.h>
|
||||
#include <windows.h>
|
||||
#define PRIx64 "llX"
|
||||
#ifdef DYNLOAD
|
||||
#include "unicorn_dynload.h"
|
||||
#else // DYNLOAD
|
||||
#include <unicorn/unicorn.h>
|
||||
#ifdef _WIN64
|
||||
#pragma comment(lib, "unicorn_staload64.lib")
|
||||
#else // _WIN64
|
||||
#pragma comment(lib, "unicorn_staload.lib")
|
||||
#endif // _WIN64
|
||||
#endif // DYNLOAD
|
||||
|
||||
// posix specific
|
||||
#else // _MSC_VER
|
||||
#include <unistd.h>
|
||||
#include <inttypes.h>
|
||||
#include <unicorn/unicorn.h>
|
||||
#endif // _MSC_VER
|
||||
#include <string.h>
|
||||
|
||||
|
||||
// code to be emulated
|
||||
|
Reference in New Issue
Block a user