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