mirror of
https://github.com/ModOrganizer2/udis86.git
synced 2026-07-27 14:05:57 -07:00
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.
19 lines
318 B
C
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;
|
|
}
|