ide: fixed to compile

git-svn-id: svn://ultimatepp.org/upp/trunk@9581 f0d560ea-af0d-0410-9eb7-867de7ffcac7
This commit is contained in:
cxl 2016-03-07 10:54:58 +00:00
parent 22819a462a
commit b471d0dd6f
2 changed files with 27 additions and 0 deletions

View file

@ -0,0 +1,9 @@
#define bmYEAR 2016
#define bmMONTH 3
#define bmDAY 6
#define bmHOUR 14
#define bmMINUTE 3
#define bmSECOND 5
#define bmTIME Time(2016, 3, 6, 14, 3, 5)
#define bmMACHINE "MAIN"
#define bmUSER "cxl"

View file

@ -3,6 +3,12 @@
#include "ndisasm.h"
extern "C" {
#undef INT64_MIN
#undef INT64_MAX
#undef UINT64_MAX
#include "lib/compiler.h"
#include "lib/inttypes.h"
#include "lib/disasm.h"
}
@ -18,4 +24,16 @@ int NDisassemble(char *output, const byte *data, uint64 offset, bool x64)// retu
return len;
}
#ifdef flagMAIN
CONSOLE_APP_MAIN
{
long start = 0x4012f8, end = start + 256;
while(start < end) {
char line[NDISASM_OUTBUF_SIZE];
start += NDisassemble(line, (const byte *)start, start);
puts(line);
}
}
#endif
END_UPP_NAMESPACE