home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #18 / NN_1992_18.iso / spool / comp / sys / ibm / pc / programm / 340 < prev    next >
Encoding:
Internet Message Format  |  1992-08-14  |  2.0 KB

  1. Xref: sparky comp.sys.ibm.pc.programmer:340 comp.os.msdos.programmer:8542
  2. Path: sparky!uunet!gatech!mailer.cc.fsu.edu!sun13!sun13.scri.fsu.edu!hudgens
  3. From: hudgens@SCRI.FSU.EDU (Jim Hudgens)
  4. Newsgroups: comp.sys.ibm.pc.programmer,comp.os.msdos.programmer
  5. Subject: Undocumented (but used) flag setting in some instructions?
  6. Message-ID: <HUDGENS.92Aug14163629@sun13.SCRI.FSU.EDU>
  7. Date: 14 Aug 92 20:36:29 GMT
  8. Sender: hudgens@sun13.scri.fsu.edu
  9. Followup-To: comp.sys.ibm.pc.programmer
  10. Distribution: usa
  11. Organization: SCRI, Florida State University
  12. Lines: 39
  13.  
  14.  
  15. I'm writing a DOS emulator.  It's very very close.   Just got 
  16. TASM running last night on it.  PK*ZIP too.  
  17.  
  18. In running some msdos executables on this beast, I find that sometimes
  19. I get slightly different results from the same codes run on PC's.
  20. This is not a good thing, for the most part. :-).  The differences are
  21. from TC's runtime floating emulation (and at the 5th digit or so).
  22. Many other programs run exactly the same, including a small suite of
  23. programs which are designed to test the opcodes which affect flags
  24. (add, sub, or, rcl, etc).
  25.  
  26. I recall reading somewhere (net.rumor, maybe) that the TC floating
  27. runtime (or in some libraries, or fractint, or somewhere) that someone
  28. discovered how to speed up floating point speed by utilizing 
  29. some opcode (I think it was either div or mul, but perhaps it was
  30. something else) which consistently set the flags in some usable 
  31. way (sign or zero, perhaps) but also that those particular flags were
  32. offically "undefined" for this opcode.  I tend to believe a rumor
  33. such as this based on past experience debugging this beast.  
  34.  
  35. I realize that the above paragraph is somewhat vague, but if anyone 
  36. out there knows what I'm talking about or has any similar war stories
  37. I'd love to hear them.  Keep in mind that what I'm trying to avoid
  38. is single-stepping through 100K of instructions without really being
  39. sure of what I'm looking for.
  40.  
  41. Thanks in advance...
  42.  
  43. JHH
  44.  
  45.  
  46.  
  47.  
  48.  
  49. --
  50. Jim Hudgens             Supercomputer Computations Research Institute
  51. hudgens@sun13.scri.fsu.edu      
  52.  
  53.