1
|
1 /* -----------------------------------------------------------------------------
|
|
2 * syn.h
|
|
3 *
|
|
4 * Copyright (c) 2006, Vivek Mohan <vivek@sig9.com>
|
|
5 * All rights reserved. See LICENSE
|
|
6 * -----------------------------------------------------------------------------
|
|
7 */
|
|
8 #ifndef UD_SYN_H
|
|
9 #define UD_SYN_H
|
|
10
|
|
11 #include <stdio.h>
|
|
12 #include <stdarg.h>
|
|
13 #include "types.h"
|
|
14
|
|
15 extern const char* ud_reg_tab[];
|
|
16
|
|
17 static void mkasm(struct ud* u, const char* fmt, ...)
|
|
18 {
|
|
19 va_list ap;
|
|
20 va_start(ap, fmt);
|
|
21 u->insn_fill += vsprintf((char*) u->insn_buffer + u->insn_fill, fmt, ap);
|
|
22 va_end(ap);
|
|
23 }
|
|
24
|
|
25 #endif
|