diff options
Diffstat (limited to 'utils/va')
| -rw-r--r-- | utils/va/a.h | 6 | ||||
| -rw-r--r-- | utils/va/a.y | 2 | ||||
| -rw-r--r-- | utils/va/lex.c | 2 | ||||
| -rw-r--r-- | utils/va/note | 51 |
4 files changed, 5 insertions, 56 deletions
diff --git a/utils/va/a.h b/utils/va/a.h index 92199a08..fb6c8cb5 100644 --- a/utils/va/a.h +++ b/utils/va/a.h @@ -29,7 +29,7 @@ struct Sym { Sym* link; char* macro; - long value; + vlong value; ushort type; char *name; char sym; @@ -61,7 +61,7 @@ EXTERN struct struct Gen { Sym* sym; - long offset; + vlong offset; short type; short reg; short name; @@ -74,7 +74,7 @@ struct Hist Hist* link; char* name; long line; - long offset; + vlong offset; }; #define H ((Hist*)0) diff --git a/utils/va/a.y b/utils/va/a.y index cbc07fd7..fa7a9341 100644 --- a/utils/va/a.y +++ b/utils/va/a.y @@ -4,7 +4,7 @@ %union { Sym *sym; - long lval; + vlong lval; double dval; char sval[8]; Gen gen; diff --git a/utils/va/lex.c b/utils/va/lex.c index 83b3fb9e..df03aea8 100644 --- a/utils/va/lex.c +++ b/utils/va/lex.c @@ -462,7 +462,7 @@ cinit(void) if(mygetwd(pathname, 99) == 0) { pathname = allocn(pathname, 100, 900); if(mygetwd(pathname, 999) == 0) - strcpy(pathname, "/???"); + strcpy(pathname, "/?"); } } diff --git a/utils/va/note b/utils/va/note deleted file mode 100644 index f68e464f..00000000 --- a/utils/va/note +++ /dev/null @@ -1,51 +0,0 @@ -gen address - -$con - type = D_CONST - offset = con - -$name+con(P) - type = D_CONST - offset = con - name = P - -$"xxx" - type = D_SCONST - -$1.0 - type = D_FCONST - -con - type = D_OREG - offset = con - -name+con(P) - type = D_OREG - offset = con - name = P - -con(R1) - type = D_OREG - offset = con - reg = 1 - -name+con(P)(R1) - type = D_OREG - offset = con - name = P - reg = 1 - -R1 - type = D_REG - reg = 1 - -MOVB[U] - LB[U], SB -MOVH[U] - LH[U], SB -MOVW[LR] - LW[LR], SW[LR] -MOVW - LW, SW, LUI, M[FT]HI, M[FT]LO -BREAK is synonym for CACHE. -operands make the difference. |
