home bbs files messages ]

Forums before death by AOL, social media and spammers... "We can't have nice things"

   comp.lang.asm.x86      Ahh, the lost art of x86 assembly      4,675 messages   

[   << oldest   |   < older   |   list   |   newer >   |   newest >>   ]

   Message 3,783 of 4,675   
   aen@nospicedham.spamtrap.com to robertwessel2@nospicedham.yahoo.com   
   Re: masm 64-bit binary to dq   
   15 Feb 19 16:00:10   
   
   On Fri, 15 Feb 2019 09:09:02 -0600, Robert Wessel   
    wrote:   
   >>But those 36 bits should fit into a quad.  It is probably a bug,   
   >>because the OP is right   
   >>   
   >>hchars	dq	FBEFBB800h   
   >>   
   >>does work.   
   >   
   >   
   >With a leading zero.  MASM should interpret the above as a label.   
   >   
   >I played with it a bit more, and it looks like a length limit for the   
   >string.  Converting leading digits of the binary to zero, or adding   
   >more leading zeros to the hex fails the same way.  For example:   
   >   
   >chars64 dq 0000000000000000000000000fbefbb800h   ;fails   
   For hex it can only be 16 digits, more don't fit into a quad.   
      
   	dq	0FFFFFFFFFFFFFFFFH   
      
   still works.   
   >   
   >Remove one of the leading zero, and it's OK.  It look like the limit   
   >is 33 digits, which makes some sense if someone coded the limit back   
   >in the 32 or 16-bit days - that would cover the maximum length number   
   >in binary, including an extra leading zero.   
   >   
   --   
   aen   
      
   --- SoupGate-Win32 v1.05   
    * Origin: you cannot sedate... all the things you hate (1:229/2)   

[   << oldest   |   < older   |   list   |   newer >   |   newest >>   ]


(c) 1994,  bbs@darkrealms.ca