Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/sys/arch/amiga/stand/bootblock/txlt Add some additional conv...



details:   https://anonhg.NetBSD.org/src/rev/9d30c9e45a2f
branches:  trunk
changeset: 519417:9d30c9e45a2f
user:      mhitch <mhitch%NetBSD.org@localhost>
date:      Mon Dec 17 05:45:08 2001 +0000

description:
Add some additional conversions for ELF assembler output.

diffstat:

 sys/arch/amiga/stand/bootblock/txlt/txlt.l |  13 ++++++++-----
 1 files changed, 8 insertions(+), 5 deletions(-)

diffs (32 lines):

diff -r a217578d7b84 -r 9d30c9e45a2f sys/arch/amiga/stand/bootblock/txlt/txlt.l
--- a/sys/arch/amiga/stand/bootblock/txlt/txlt.l        Mon Dec 17 05:43:40 2001 +0000
+++ b/sys/arch/amiga/stand/bootblock/txlt/txlt.l        Mon Dec 17 05:45:08 2001 +0000
@@ -1,20 +1,23 @@
        void munchit(char *);
 %%
+.\.l\ [._A-Za-z][A-Za-z0-9_.]*/\,      {printf("%c.l",yytext[0]);munchit(yytext+3);}
+.\.w\ [._A-Za-z][A-Za-z0-9_.]*/\,      {printf("%c.w",yytext[0]);munchit(yytext+3);}
 \..*\n                                 printf("%s", yytext);
-pea[   ][_A-Za-z][A-Za-z0-9_]*$        {printf("pea");munchit(yytext+3);}
-\ [_A-Za-z][A-Za-z0-9_]*/\,            munchit(yytext);
+pea[   ][._A-Za-z][A-Za-z0-9_.]*$      {printf("pea");munchit(yytext+3);}
+\ [._A-Za-z][A-Za-z0-9_.]*/\,          munchit(yytext);
 .                                      putchar(*yytext);
 %%
-/*     $NetBSD: txlt.l,v 1.3 2001/03/02 16:43:25 mhitch Exp $  */
+/*     $NetBSD: txlt.l,v 1.4 2001/12/17 05:45:08 mhitch Exp $  */
 
 void
 munchit(s)
        char *s;
 {
        putchar(*s++);
-       if (!strncmp(s, "fp", 2) ||
+       if ((!strncmp(s, "fp", 2) ||
            !strncmp(s, "sp", 2) ||
-           ((*s == 'a')  || (*s == 'd')) && ((s[1]-'0')<=7))
+           ((*s == 'a')  || (*s == 'd')) && ((s[1]-'0')<=7)) &&
+           (s[2] == 0 || s[2] == ','))
                printf("%s", s);
        else
                printf("%%pc@(%s)",s);



Home | Main Index | Thread Index | Old Index