- only convert real hex constants to 0x form, not $NetBSD...

- protect comment lines from future uses of CPP by putting a | in front
This commit is contained in:
is 1997-09-30 21:47:22 +00:00
parent 603e306a5b
commit 3f894ade50
1 changed files with 3 additions and 2 deletions

View File

@ -1,5 +1,5 @@
#!/bin/sh
# $NetBSD: asm2gas,v 1.3 1994/10/26 07:48:49 cgd Exp $
# $NetBSD: asm2gas,v 1.4 1997/09/30 21:47:22 is Exp $
#
# Copyright (c) 1994 Charles Hannum. All rights reserved.
@ -36,6 +36,7 @@
cat $1 | sed -e '
# format canonicalization
s/^#/|#/
/[ ]IDNT[ ]/{s/^/|/;p;d;}
/^\*/{s//|/;p;d;}
s/;/|/
@ -138,7 +139,7 @@ cat $1 | sed -e '
s/\([^_a-zA-Z0-9]\)fpiar\([^_a-zA-Z0-9]\)/\1fpi\2/g
s/\([^_a-zA-Z0-9]\)fpiar$/\1fpi/g
s/\$/0x/g
s/\$\([0-9a-fA-F]\)/0x\1/g
s/#:/#:0x/g
s/-(\([sSpPaA][pPcC0-7]\))/\1@-/g