forked from KolibriOS/kolibrios
8b2f0665a4
git-svn-id: svn://kolibrios.org@8323 a494cfbc-eb01-0410-851d-a64ba20cac60
26 lines
585 B
C
Executable File
26 lines
585 B
C
Executable File
/* -----------------------------------------------------------------------------
|
|
* syn.h
|
|
*
|
|
* Copyright (c) 2006, Vivek Mohan <vivek@sig9.com>
|
|
* All rights reserved. See LICENSE
|
|
* -----------------------------------------------------------------------------
|
|
*/
|
|
#ifndef UD_SYN_H
|
|
#define UD_SYN_H
|
|
|
|
#include <stdio.h>
|
|
#include <stdarg.h>
|
|
#include "types.h"
|
|
|
|
extern const char* ud_reg_tab[];
|
|
|
|
static void mkasm(struct ud* u, const char* fmt, ...)
|
|
{
|
|
va_list ap;
|
|
va_start(ap, fmt);
|
|
u->insn_fill += vsprintf((char*) u->insn_buffer + u->insn_fill, fmt, ap);
|
|
va_end(ap);
|
|
}
|
|
|
|
#endif
|