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,514 of 4,675   
   bilsch to R.Wieser   
   Re: a variable definition is causing an    
   26 Jul 18 18:42:54   
   
   From: king621@nospicedham.comcast.net   
      
   On 07/26/2018 12:31 AM, R.Wieser wrote:   
   > 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]   
   >   
   I said that wrong.  I meant   
   mov ax,word[js2nd]   
   mov [si+6],ax   
      
      
   > :-)   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