source:
trunk/tools/asmify.sh
@
515
| Revision 515, 302 bytes checked in by reyalp, 5 years ago (diff) | |
|---|---|
|
|
| Line | |
|---|---|
| 1 | #!/bin/sh |
| 2 | |
| 3 | # script to convert IDAs asm dump to something similar to gcc's inline asm |
| 4 | |
| 5 | sed 's/^ROM:[0-9A-F]* \?//' | sed 's/[[:space:]]*;.*$//' | grep -v '^$' | \ |
| 6 | sed 's/^\\(loc_[0-9A-F]*\\)$/\\1:/' | \ |
| 7 | sed 's/^\\([[:space:]]*\\)DCD/\\1.long/' | \ |
| 8 | sed 's/^\\([[:space:]]*\\)\\(.*\\)$/\\1\ \"\\2\\\n\"/' |
Note: See TracBrowser
for help on using the repository browser.