home bbs files messages ]

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

   comp.lang.pascal.borland      Borland Pascal was actually pretty neat      2,978 messages   

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

   Message 2,622 of 2,978   
   Marco van de Voort to All   
   Re: Can Anyone tell me why this doesn't    
   22 Feb 08 09:52:10   
   
   ba494a11   
   From: marcov@stack.nl   
      
   On 2008-02-21, HubbleBubble  wrote:   
      
   I never really did this kind of $66 stuff, but I can vaguely remember that   
   there were two prefixes, $66 and $67, and that in general $66 evaluates to   
   the instruction with all parts updated to 32-bit, and $67 lets the register   
   sizes remain 16-bit. (maybe with the exception of memory operands)   
      
   >           DB $66   
   >           mov     ax,cx   
      
   So this would be mov eax,ecx while   
      
   db $67 mov ax,cx   
      
   would remain ax,cx   
      
   If I keep that in the back of my head, I wonder what will happen to this   
   line:   
      
   >           DB $66   
   >           mov     si,word ptr LineOffsets[bx]   
      
   Will this also become dword ptr?   
      
   So in general I'd try to put this code in some assembler, assemble, and then   
   disassemble again with a disassembler that really knows the 32-bit opcodes   
   and verify that what comes out of it is really what you want. (and put that   
   then in comments in the TP code)   
      
   I haven't done any realmode work since I left TP in 1997-8, so don't really   
   have strong recommendations, but maybe others can make suggestions about   
   proper tooling for   
      
   --- 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