My program output encoded instructions which look like this :
0x81FB4300000090
0x69FC4300000090
0x81FC4300000090
0x69FD4300000090
0x81FD4300000090
0x69FE4300000090
0x81FE4300000090
0x69FF4300000090
0x81FF4300000090
0x00054400000090
0x01054400000090
0x02054400000090
0x03054400000090
0x08054400000090
0x09054400000090
0x0A054400000090
0x0B054400000090
0x10054400000090
0x11054400000090
0x12054400000090
0x13054400000090
0x18054400000090
0x19054400000090
0x1A054400000090
0x1B054400000090
0x20054400000090
0x21054400000090
0x22054400000090
0x23054400000090
0x28054400000090
0x29054400000090
0x2A054400000090
0x2B054400000090
0x30054400000090
0x31054400000090
0x32054400000090
0x33054400000090
0x38054400000090
0x39054400000090
0x3A054400000090
0x3B054400000090
0x40054400000090
0x41054400000090
0x42054400000090
0x43054400000090
0x44054400000090
0x45054400000090
0x46054400000090
0x47054400000090
Where each lines above are independent set of instructions and need to be disassembled as separate programs. Each line contains 7 bytes of instructions. I can output them in binary directly, ***in that case, every block of 7 bytes need to be disassembled separately.
In the bash script that run my program, I want to filter out lines which contains static jumps.
So, how to disassemble each lines separately from stdin ? (I want to do something like ./my_C_program | the_disassembler | grep loopne
)
I tried objdump, but it refuse to use /dev/stdin
as input file.
It took 192ms on my machine. Never assume you know something is too slow.
They are a bunch of nop instructions with junk after them. Are they in the wrong order? The most significant (last) byte is first when written in hex.