File: masm2gas

package info (click to toggle)
polyml 5.2.1-1.1
  • links: PTS, VCS
  • area: main
  • in suites: jessie, jessie-kfreebsd, wheezy
  • size: 19,692 kB
  • ctags: 17,567
  • sloc: cpp: 37,221; sh: 9,591; asm: 4,120; ansic: 428; makefile: 203; ml: 191; awk: 91; sed: 10
file content (15 lines) | stat: -rw-r--r-- 378 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
#! /usr/bin/sed -f
s/
//g
s/;#.*//
s/^IFDEF/#ifdef/
s/^ELSE/#else/
s/^ENDIF/#endif/
s/^IFNDEF/#ifndef/
# Convert macro calls.
s/CALLMACRO[ 	]*\([^ 	]*\)[ 	]*\(.*\)/	\1(\2)/
# Convert addresses of the form [eax], [eax+ebx], [eax+ebx*4] into
# (eax), (eax,ebx), (eax,ebx,4)
s/\[\([^]]*\)+\([^]]*\)\*\([^]]*\)]/(\1,\2,\3)/g
s/\[\([^]]*\)+\([^]]*\)]/(\1,\2)/g
s/\[\([^]]*\)]/(\1)/g