private boolean addressAndCountIsOk(int addr,int count){
  int beginPage=addr / PAGESIZE;
  int endPage=((addr + count - 1) / PAGESIZE);
  log.debug("Effective Record Addr = 0x" + Integer.toHexString(addr) + " count = "+ count+ " BeginPage = "+ beginPage+ " endpage = "+ endPage);
  return (beginPage == endPage);
}

private boolean addressAndCountIsOk ( int addr , int count ) { int beginPage = addr / PAGESIZE ; int endPage = ( ( addr + count - 1 ) / PAGESIZE ) ; log . debug ( "Effective Record Addr = 0x" + Integer . toHexString ( addr ) + " count = " + count + " BeginPage = " + beginPage + " endpage = " + endPage ) ; return ( beginPage == endPage ) ; }
determines if a given amount of data will pass a segment boundary when added to the memory image beginning at a given address .
