mirror of
https://github.com/netwide-assembler/nasm.git
synced 2024-12-21 09:19:31 +08:00
ed37aa8070
If we can't find a matching instruction, rather than printing it as a "db" literal, consider first if we can disassemble it as a naked prefix.
19 lines
607 B
C
19 lines
607 B
C
/* 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
|
|
* redistributable under the license given in the file "LICENSE"
|
|
* distributed in the NASM archive.
|
|
*/
|
|
|
|
#ifndef NASM_DISASM_H
|
|
#define NASM_DISASM_H
|
|
|
|
#define INSN_MAX 32 /* one instruction can't be longer than this */
|
|
|
|
int32_t disasm(uint8_t *data, char *output, int outbufsize, int segsize,
|
|
int32_t offset, int autosync, uint32_t prefer);
|
|
int32_t eatbyte(uint8_t *data, char *output, int outbufsize, int segsize);
|
|
|
|
#endif
|