Mercurial > repo
view bin/asm @ 6086:549c712191ca
<fizzie> ` sed -i -e \'2s#$# | perl -pe \'\\\'\'if (/^\\s*(\\d+:)\\s*((?:\\w\\w )+)\\s*(\\S.*)$/) { ($a,$b,$c) = ($1,$2,$3); $_ = "$a $b ".($c =~ s/\\s+/ /rg); }\'\\\'\'#\' bin/asm
author | HackBot |
---|---|
date | Sat, 17 Oct 2015 10:36:28 +0000 |
parents | 7910bd18a926 |
children | 047bfffd1043 |
line wrap: on
line source
#!/bin/sh echo "$1" | as -c /dev/stdin -o /tmp/asm.o; objdump -d --insn-width=20 /tmp/asm.o | sed -e "1,/0000000000000000/d" | perl -pe 'if (/^s*(d+:)s*((?:ww )+)s*(S.*)$/) { ($a,$b,$c) = ($1,$2,$3); $_ = "$a $b ".($c =~ s/s+/ /rg); }'