blob: 6467730a09d41722d7ab5af7cc3f6d3cd636a9ae [file] [log] [blame]
H. Peter Anvinea6e34d2002-04-30 20:51:32 +00001/* disasm.h header file for disasm.c
2 *
3 * The Netwide Assembler is copyright (C) 1996 Simon Tatham and
4 * Julian Hall. All rights reserved. The software is
Beroset095e6a22007-12-29 09:44:23 -05005 * redistributable under the license given in the file "LICENSE"
H. Peter Anvinea6e34d2002-04-30 20:51:32 +00006 * distributed in the NASM archive.
7 */
8
9#ifndef NASM_DISASM_H
10#define NASM_DISASM_H
11
H. Peter Anvine2c80182005-01-15 22:15:51 +000012#define INSN_MAX 32 /* one instruction can't be longer than this */
H. Peter Anvinea6e34d2002-04-30 20:51:32 +000013
Keith Kaniosa6dfa782007-04-13 16:47:53 +000014int32_t disasm(uint8_t *data, char *output, int outbufsize, int segsize,
Keith Kaniosb7a89542007-04-12 02:40:54 +000015 int32_t offset, int autosync, uint32_t prefer);
H. Peter Anvined37aa82009-03-18 23:10:19 -070016int32_t eatbyte(uint8_t *data, char *output, int outbufsize, int segsize);
H. Peter Anvinea6e34d2002-04-30 20:51:32 +000017
18#endif