summaryrefslogtreecommitdiff
path: root/other/burneye2/ia32/ia32-encode.h
blob: 34778bd2cf0c23523f121ebbf9a57a3bec277a37 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
/* ia32-encode.h - ia32 instruction encoding, include file
 *
 * by scut
 */

#ifndef	IA32_ENCODE_H
#define	IA32_ENCODE_H


/* ia32_encode_instruction
 *
 * encode the instruction `inst' to `dest'. there must be enough space free,
 * up to 16 bytes can be used. `inst' is complete except the opc.opcode
 * pointer, which is selected through `inst_num'.
 *
 * return zero on failure
 * return length of instruction (prefix plus opcode) on success
 */

unsigned int
ia32_encode_instruction (unsigned int inst_num, ia32_instruction *inst,
	unsigned char *dest);

#endif