English Amiga Board


Go Back   English Amiga Board > Coders > Coders. General

 
 
Thread Tools
Old 04 November 2006, 09:14   #1
gizmomelb
Registered User
 
Join Date: Sep 2005
Location: melbourne
Age: 55
Posts: 541
WinUAE

Hi Toni,

a quick question for you if I may please - how does WinUAE 'emulate' the Amiga floppy drive?

Does it decode an ADF/DMS floppy image to memory and then the MFM decoded image can be accessed by the Amiga floppy controller and the floppy emulator circuit just works off set timers etc. to output the data at the rate which the floppy controller chips expect?

or

Does it actually fully emulate the circuit of a floppy drive?


Likewise for IPF images, are the IPF images unpacked as MFM data to an area of memory and then known timers etc. are used to emulate what a real floppy drive would report back to the floppy controller chips?

or is there a full (circuit level?) emulated floppy drive which reports back IPF disk errors etc.?

C/C++ code means next to nothing to me, but I'll try and work it out from the WinUAE sourcecode, I just thought it might be lazier and faster for me to ask the author

Many thanks,
Gizmomelb
gizmomelb is offline  
Old 04 November 2006, 12:35   #2
Toni Wilen
WinUAE developer
 
Join Date: Aug 2001
Location: Hämeenlinna/Finland
Age: 49
Posts: 26,554
ADFs/IPF/whatever are converted to raw data + separate buffer for possible timing data (IPFs only)

Disk controller emulation is normally called once per horizontal line (DMA) or when needed (CPU accesses DSKBYTR or any other disk-related register)

This also includes disk drive emulation (disk rotation position/motor status for example). Controller and drive aren't really separated in emulation code.

Internally emulation is "cycle-exact", one bit is copied from "disk drive" to internal register, dsksync checked (if enabled), DMA to RAM (if full 16-bit of data ready) etc.. Turbo-mode skips this part.

Hope this helps.
Toni Wilen is online now  
 


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools

Similar Threads
Thread Thread Starter Forum Replies Last Post
WinUAE 0.9.92 "WinUAE 1.0 public beta #3" Released! Jim News 2 23 December 2004 11:29
WinUAE - HD, and WinUAE Beats me Mr.B support.WinUAE 19 26 October 2003 17:49
WinUAE 0817r3-GUI dissappears/ WinUAE freezes. 7-Zark-7 support.WinUAE 2 23 December 2001 14:19

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT +2. The time now is 18:41.

Top

Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2024, vBulletin Solutions Inc.
Page generated in 0.06893 seconds with 13 queries