Files
udis86/tests/installcheck.c
Vivek Thampi c22a784932 Overhaul testing infrastructure
Adding new diff tests had been painful, and this change address that.
Now all you need to do is drop the asm in the right place and it become
part of the test suite. Also included are a lot of cleanup.
2013-02-18 18:56:20 -08:00

19 lines
318 B
C

#include <stdio.h>
#include <udis86.h>
int main(void)
{
ud_t ud_obj;
ud_init(&ud_obj);
ud_set_input_file(&ud_obj, stdin);
ud_set_mode(&ud_obj, 64);
ud_set_syntax(&ud_obj, UD_SYN_INTEL);
while (ud_disassemble(&ud_obj)) {
printf("\t%s\n", ud_insn_asm(&ud_obj));
}
return 0;
}