]> granicus.if.org Git - yasm/commitdiff
Support "oword", "do", and "reso" as aliases for "dqword", "ddq", and
authorPeter Johnson <peter@tortall.net>
Wed, 19 Sep 2007 02:52:33 +0000 (02:52 -0000)
committerPeter Johnson <peter@tortall.net>
Wed, 19 Sep 2007 02:52:33 +0000 (02:52 -0000)
"resdq" respectively, for compatibility with NASM (sigh).

svn path=/trunk/yasm/; revision=1962

modules/parsers/nasm/nasm-token.re

index de58cf0e9b86a45437a2a9dd0a6c68f5b429a04e..2e0f30766981871809766ef255530b0e1c8bce49 100644 (file)
@@ -246,6 +246,10 @@ scan:
             lvalp->int_info = yasm_arch_wordsize(p_object->arch)*8;
             RETURN(SIZE_OVERRIDE);
         }
+        'oword'        {
+            lvalp->int_info = yasm_arch_wordsize(p_object->arch)*8;
+            RETURN(SIZE_OVERRIDE);
+        }
 
         /* pseudo-instructions */
         'db'            { lvalp->int_info = 8; RETURN(DECLARE_DATA); }
@@ -270,6 +274,10 @@ scan:
             lvalp->int_info = yasm_arch_wordsize(p_object->arch)*8;
             RETURN(DECLARE_DATA);
         }
+        'do'           {
+            lvalp->int_info = yasm_arch_wordsize(p_object->arch)*8;
+            RETURN(DECLARE_DATA);
+        }
 
         'resb'          { lvalp->int_info = 8; RETURN(RESERVE_SPACE); }
         'reshw'         {
@@ -293,6 +301,10 @@ scan:
             lvalp->int_info = yasm_arch_wordsize(p_object->arch)*8;
             RETURN(RESERVE_SPACE);
         }
+        'reso'         {
+            lvalp->int_info = yasm_arch_wordsize(p_object->arch)*8;
+            RETURN(RESERVE_SPACE);
+        }
 
         'incbin'        { RETURN(INCBIN); }