2002-05-01 04:51:32 +08:00
|
|
|
/* disasm.h header file for disasm.c
|
|
|
|
*
|
|
|
|
* The Netwide Assembler is copyright (C) 1996 Simon Tatham and
|
|
|
|
* Julian Hall. All rights reserved. The software is
|
2007-12-29 22:44:23 +08:00
|
|
|
* redistributable under the license given in the file "LICENSE"
|
2002-05-01 04:51:32 +08:00
|
|
|
* distributed in the NASM archive.
|
|
|
|
*/
|
|
|
|
|
|
|
|
#ifndef NASM_DISASM_H
|
|
|
|
#define NASM_DISASM_H
|
|
|
|
|
2005-01-16 06:15:51 +08:00
|
|
|
#define INSN_MAX 32 /* one instruction can't be longer than this */
|
2002-05-01 04:51:32 +08:00
|
|
|
|
2007-04-14 00:47:53 +08:00
|
|
|
int32_t disasm(uint8_t *data, char *output, int outbufsize, int segsize,
|
2007-04-12 10:40:54 +08:00
|
|
|
int32_t offset, int autosync, uint32_t prefer);
|
2007-04-14 00:47:53 +08:00
|
|
|
int32_t eatbyte(uint8_t *data, char *output, int outbufsize);
|
2002-05-01 04:51:32 +08:00
|
|
|
|
|
|
|
#endif
|