<< Previous Message Main Index Next Message >>
<< Previous Message in Thread This Month Next Message in Thread >>
Date   : Mon, 18 Jul 1994 23:53:14 +0100
From   : jfid@... (James Fidell)
Subject: Re: Calculating branch addresses

Stephen Quan wrote:

> It might crash is when the PC falls of the end of the array, but
> I assume in real life this would never happen.  The only time when the
> PC ever gets this high is when the BBC itself resets and calls the code
> stored at &FFFE, but even then that is a jump instruction which will
> take the PC back to a reasonable value.  It will take someone with a
> deliberate intention to crash the emulator in order to crash it
> successfully.

I've adopted much the same approach to bounds-checking.  It's there
for debugging, but not otherwise, because if you do it everywhere, it's
too big a performance penalty.

James.

-- 
 "Yield to temptation --             |
  it may not pass your way again"    |     jfid@...        
                                     |
        - Lazarus Long               |              James Fidell
<< Previous Message Main Index Next Message >>
<< Previous Message in Thread This Month Next Message in Thread >>