source: trunk/tools/asmify.sh @ 515

Revision 515, 302 bytes checked in by reyalp, 5 years ago (diff)

set svn:eol-style and fix files that had mixed line endings. See http://chdk.setepontos.com/index.php/topic,2145.15.html

  • Property svn:eol-style set to LF
  • Property svn:executable set to *
Line 
1#!/bin/sh
2
3# script to convert IDAs asm dump to something similar to gcc's inline asm
4
5sed 's/^ROM:[0-9A-F]* \?//' | sed 's/[[:space:]]*;.*$//' | grep -v '^$' | \
6sed 's/^\\(loc_[0-9A-F]*\\)$/\\1:/' | \
7sed 's/^\\([[:space:]]*\\)DCD/\\1.long/' | \
8sed 's/^\\([[:space:]]*\\)\\(.*\\)$/\\1\ \"\\2\\\n\"/'
Note: See TracBrowser for help on using the repository browser.