Skip to content

systemz: pad instruction width up to 6 bytes #1679

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Sep 3, 2020
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 5 additions & 1 deletion cstool/cstool.c
Original file line number Diff line number Diff line change
Expand Up @@ -455,12 +455,16 @@ int main(int argc, char **argv)
putchar(' ');
printf("%02x", insn[i].bytes[j]);
}
// X86 instruction size is variable.
// X86 and s390 instruction sizes are variable.
// align assembly instruction after the opcode
if (arch == CS_ARCH_X86) {
for (; j < 16; j++) {
printf(" ");
}
} else if (arch == CS_ARCH_SYSZ) {
for (; j < 6; j++) {
printf(" ");
}
}

printf(" %s\t%s\n", insn[i].mnemonic, insn[i].op_str);
Expand Down