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,511 of 4,675   
   R.Wieser to All   
   Re: a variable definition is causing an    
   26 Jul 18 09:31:18   
   
   From: address@nospicedham.not.available   
      
   bilsh,   
      
   > which should have been   
   >   
   > mov [si+6],word[js2nd]   
      
   AFAIK thats still an instruction that does not exist ...   
      
   Just to satisfy my curiosity, could you look up (in the .LST file ?) what   
   machine code is generated from that line and post it  ?   
      
   > and   mov ax,word[js2nd]   
      
   :-)   Your assembler responds a bit different than mine.    A "mov ax,   
   label" causes mine to load the contents (regardless of the presence of   
   square brackets), and throws an error if the target register size does not   
   match the data size/type of the label).   I need to add an "offset" prefix   
   for the label to load its address: "mov ax,offset label".   
      
   > I fixed these and the problem is solved.  Thank you for your comments.   
      
   Thank you for telling me.  Its good to hear that offered help did indeed do   
   so. :-)   
      
   Regards,   
   Rudy Wieser   
      
   --- 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