home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #26 / NN_1992_26.iso / spool / comp / unix / programm / 5185 < prev    next >
Encoding:
Text File  |  1992-11-07  |  1.1 KB  |  31 lines

  1. Newsgroups: comp.unix.programmer
  2. Path: sparky!uunet!gatech!paladin.american.edu!news.univie.ac.at!hp4at!mcsun!sunic!dkuug!daimi!datpete
  3. From: datpete@daimi.aau.dk (Peter Andersen)
  4. Subject: mc680x0 chk2 question
  5. Message-ID: <1992Nov5.200526.15218@daimi.aau.dk>
  6. Sender: datpete@daimi.aau.dk (Peter Andersen)
  7. Reply-To: datpete@daimi.aau.dk (Peter Andersen)
  8. Organization: DAIMI: Computer Science Department, Aarhus University, Denmark
  9. Date: Thu, 5 Nov 92 20:05:26 GMT
  10. Lines: 19
  11.  
  12. I don't know if this is the right group, but I could not find
  13. a better one.
  14.  
  15.  
  16. I am writing some assembler code, and I want to check if
  17. a value in, say, register d0 is between two values, that
  18. I have allocated rigth after each other.
  19. This seems to be a situation where chk2 can be used.
  20. It actually works for me, except in one case: The bounds I
  21. check agains vary during the execution. At a particular time
  22. the low bound is 1, and the high bound is 0.
  23. I would expect chk2 to trap no matter the value of register d0
  24. in this situation, but instead it never traps.
  25.  
  26. Is the high bound required to be at least the value of the low
  27. bound for chk2 to work?
  28. Does anyone have a clue?
  29.  
  30. Peter Andersen
  31.