Wed, 13 Mar 2013 00:43:25 +0000
[wd2010,main] WD2010 disc geometry fixes
I believe I have fixed the geometry problem with FreeBee. The geometry was set
to 17 sectors per track instead of 16, which obviously throws off addressing.
I changed it to use 16 sectors per track. However, s4diag tries to format
sector 17, so I changed the WD2010 emulation to accept any address when
formatting (since the format command doesn't actually do anything, it doesn't
matter). It is now possible to format the hard disk, initialize the file
system, and mount it. However, cpio still fails to copy the system to the hard
disk.
Author: Andrew Warkentin <andreww591 gmail com>
1 #ifndef SIM__HEADER
2 #define SIM__HEADER
4 unsigned int m68k_read_memory_8(unsigned int address);
5 unsigned int m68k_read_memory_16(unsigned int address);
6 unsigned int m68k_read_memory_32(unsigned int address);
7 void m68k_write_memory_8(unsigned int address, unsigned int value);
8 void m68k_write_memory_16(unsigned int address, unsigned int value);
9 void m68k_write_memory_32(unsigned int address, unsigned int value);
10 void cpu_pulse_reset(void);
11 void cpu_set_fc(unsigned int fc);
12 int cpu_irq_ack(int level);
14 #endif /* SIM__HEADER */