[Coco] Howto for Altera DE1?

Steven Hirsch snhirsch at gmail.com
Sun Jul 4 09:19:53 EDT 2010


On Sun, 4 Jul 2010, Steven Hirsch wrote:

> On Mon, 28 Jun 2010, Aaron Wolfe wrote:
>
> 04 Jul 2010 08:56:52 INFO  [dwproto-0-8   ] r.dwprotocolhandler.DWDisk: New 
> DWDisk for '/net/ips/dw4beta-2.01/disks/coco3fpga_old_os9.dsk'
>
> Exception in thread "dwproto-0-8" java.lang.ArrayIndexOutOfBoundsException: 
> 222880
>        at 
> com.groupunix.drivewireserver.dwprotocolhandler.DWDisk.loadSectors(DWDisk.java:283)

Ding!  Here's the problem:

----------------------- cut here --------------

public class DWDisk {

  ...

  public static final int MAX_SECTORS = 122880; // what is coco's max? 24 bits?

  ....

  private DWDiskSector[] sectors = new DWDiskSector[MAX_SECTORS];



----------------------------------------------

Looks like a hard-coded assumption about maximum sector offset.  I'll try 
bumping that up and rebuilding.


Steve


-- 




More information about the Coco mailing list