home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1993 #3 / NN_1993_3.iso / spool / alt / lang / asm / 578 < prev    next >
Encoding:
Internet Message Format  |  1993-01-25  |  1.8 KB

  1. Path: sparky!uunet!mcsun!sunic!dkuug!diku!terra
  2. From: terra@diku.dk (Morten Welinder)
  3. Newsgroups: alt.lang.asm
  4. Subject: Re: Hardware bug / max()min()
  5. Message-ID: <1993Jan25.161633.27379@odin.diku.dk>
  6. Date: 25 Jan 93 16:16:33 GMT
  7. References: <ssysXB4w165w@utopia.hacktic.nl>
  8. Sender: terra@embla.diku.dk
  9. Organization: Department of Computer Science, U of Copenhagen
  10. Lines: 36
  11.  
  12. stumble@utopia.hacktic.nl (Yeats) writes:
  13.  
  14. > I recently discovered what may be a rare hardware bug -
  15. >the following code will freeze my old 6-8-10mhz 286 AT :
  16. >   MOV AX,[DI]
  17. >   INC DI
  18. >   MOV AX,[DI]
  19. > Other index registers cause the same hangups but the [DI] never
  20. >fails to hang at once.
  21. > Surprisingly, a keyboard reset still worked - as did the LED's.
  22. >Otherwise my system works fine (WIN3 crashes, so what).
  23. > On accessing memory using REP MOVSW and then again in a loop with
  24. >STOSB in two SEPARATE but close pieces of code, there was a more
  25. >subtle messing up of certain bytes as it run over the 64K segment
  26. >wrap-around - this bug disappeared when the REP MOVSW was replaced
  27. >by REP MOVSB with twice the count.
  28. > Does anyone know anything about this bug ?
  29.  
  30. The above piece of code is supposed to generate a generel protection
  31. exception if (and only if) DI is 0FFFFh before or "after". That should
  32. certainly crash the system: the GP exception corresponds to Int 13h -- 
  33. disk io!  Try loading a zero into DI before.
  34.  
  35. Then again you might to having some other kind of trouble.
  36.  
  37. Morten Welinder
  38. terra@diku.dk
  39. -- 
  40. -------------------------------------------------------------------------
  41. Visit the lyrics archive at ftp.uwp.edu (mirrored to nic.funet.fi, a site
  42. in Finland). All kinds of lyrics available -- upload "yours" and join.
  43. -------------------------------------------Morten Welinder, terra@diku.dk
  44.