wd1793 (MSX development MSX Fora)MSX Resource Center            
            
English Nederlands Espa�ol Portugu�s Russian French         

MSX Fora


MSX Fora

MSX development - wd1793

Schrijver

wd1793

flok
msx novice
Berichten: 25
Geplaatst: 29 Juli 2008, 18:47   
I was fiddling with wd1793 emulation (floppydrive controller) and am a little stuck. When the MSX does a 'read sector', it sends the command to the controller and then starts polling for bytes. Now, I tried feeding 512 bytes to the msx but also 584 bytes (that includes the sector data fields) but all trigger a force interrupt on the msx disk rom extension. Anyone got some pointers to clear this up?
NYYRIKKI
msx master
Berichten: 1805
Geplaatst: 29 Juli 2008, 19:09   
I'm not really expert on this, but reading status register should reset INTRQ

Source: http://msx.retro8bits.com/msxwd1793.html

flok
msx novice
Berichten: 25
Geplaatst: 30 Juli 2008, 00:31   
Ah yes thanks but the problem is not that it triggers an IRQ but that I don't know what disk basic expects: just the plain 512 bytes of the sector? (I also read 256 bytes somewhere) or also the sector header?
flok
msx novice
Berichten: 25
Geplaatst: 30 Juli 2008, 01:55   
ah found it: just the 512 bytes of data, no sector headers or anything
manuel
msx legend
Berichten: 4310
Geplaatst: 30 Juli 2008, 21:55   
Are you making an emulator? There are existing emulators which also emulate this FDC... maybe it's helpful.
However, it might be a good idea to join an existing emulator project, instead of reinventing the wheel... Unless that's what you're after, of course
hap

msx professional
Berichten: 686
Geplaatst: 30 Juli 2008, 22:36   
Most personal emulator projects (including mine) prioritize the author's fun/learning experience/interest. That includes "reinventing the wheel" cases such as writing chip emulation based on datasheets and reverse engineering instead of other emulator's source code.
Good luck with your emu, flok!
manuel
msx legend
Berichten: 4310
Geplaatst: 30 Juli 2008, 22:57   
That's what I meant with "unless that's what you're after"
flok
msx novice
Berichten: 25
Geplaatst: 30 Juli 2008, 23:07   
Yes, I know of all the excellent emulators.
Writing it for old time sake.
Back in the days (1994 I think) I wrote an msx emulator in gfa basic. As you can imagine it was deadslow and hardly worked. 2 weeks ago I found this z80 emulation library and though what the heck, let's see how much work it is.
The work in progress can be followed at http://www.vanheusden.com/msx-emul/
manuel
msx legend
Berichten: 4310
Geplaatst: 31 Juli 2008, 20:45   
Cool, you're that guy who wrote that MSX Emulator for Atari! Your site keeps popping up for me Nice to hear from you. Have fun with your emulator!
 
 







(c) 1994 - 2010 Stichting MSX Resource Center. MSX is een trademark van MSX Licensing Corporation.