home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1993 #3 / NN_1993_3.iso / spool / comp / sys / intel / 3121 < prev    next >
Encoding:
Internet Message Format  |  1993-01-28  |  1.9 KB

  1. Path: sparky!uunet!news.univie.ac.at!scsing.switch.ch!ira.uka.de!Germany.EU.net!Informatik.Uni-Dortmund.DE!cantor!eggenste
  2. From: eggenste@cantor.informatik.uni-dortmund.de (Heinz-Bernd Eggenstein (LS2))
  3. Newsgroups: comp.sys.intel
  4. Subject: i386 + 32 Bit Registers
  5. Date: 28 Jan 1993 15:53:03 GMT
  6. Organization: CS Department, Dortmund University, Germany
  7. Lines: 40
  8. Sender: eggenste@cantor (Heinz-Bernd Eggenstein (LS2))
  9. Distribution: world
  10. Message-ID: <1k8vgvINNhs3@fbi-news.Informatik.Uni-Dortmund.DE>
  11. NNTP-Posting-Host: cantor.informatik.uni-dortmund.de
  12.  
  13. Hi!
  14.  
  15. (Hope this is not a FAQ or a stupid one):
  16.  
  17. What will happen to the upper 16 bit content of the registers EAX,EBX,...EBP,ESP
  18. etc. when using 16 bit instructions?
  19. Example:
  20. MOV EAX HFFFFFFFF
  21. Add ax,1
  22. EAX=????????????
  23.  
  24. My 486DX seams to leave the upper 16 bits unchanged but the 
  25. real question is: is this a documented (where) feature? What about
  26. all these dozens of 386 and 486 clones, and the 486 part of the 
  27. Pentium??
  28.  
  29. If the upper bits are unchanged, this would give you a second 
  30. bank of 16 bit registers (switching between the "banks" with ROL E**,16). 
  31.  
  32. However, if for example XOR ax,ax is simply treated as XOR EAX,EAX
  33. by the processor and the 16 upper bits are changed, this could lead
  34. to *serious* problems when using DOS programs compiled with the -3 
  35. option of BORLAND C++ 3.1: BC++3.11 code uses 32 bit registers to
  36. handle "long int"s. MS-DOS interrupts use (and save) only the 
  37. 16-bit registers (the lower 16 bits of E**) 
  38.  
  39. I tried to look this up in various handbooks for assembly programming,
  40. but none had the answer. I couldn`t find anything Intel-official on this, 
  41. either.
  42.  
  43. Could someone please give me a hint or pointer to the right 
  44. Intel-docu??
  45.  
  46. Please reply via e-mail.
  47. Thanx in advance.
  48.  
  49. ------------------------------------------------------------------------------
  50. "I don't like signatures"
  51. ------------------------------------------------------------------------------
  52.  
  53.