/[projet1]/public/oric/demos/SlideShowDemo/code/disk_info.h
Defence Force logotype

Contents of /public/oric/demos/SlideShowDemo/code/disk_info.h

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1015 - (show annotations)
Thu Dec 12 20:53:08 2013 UTC (5 years, 11 months ago) by dbug
File MIME type: text/plain
File size: 1850 byte(s)
Archived the latest version of the loader code.
It's still pretty much work in progress, but it would suck that my hard drive dies :p
1 ;
2 ; http://oric.free.fr/programming.html#disc
3 ;
4 #define location_loader $fc00
5 #define nb_sectors_loader 03
6 #define wait_status_floppy 30
7 #define retry_sector_floppy 2
8
9
10 #define FDC_command_register $0310
11 #define FDC_status_register $0310
12 #define FDC_track_register $0311
13 #define FDC_sector_register $0312
14 #define FDC_data $0313
15
16
17 ; ____________ bit 7: INTRQ state (only if bit 0 above has been set to 1) in negative logic so it's 0 if FDC requests an Interrupt.
18 ; |
19 ; |x.......| Read
20 #define MICRODISC $0314
21 ; |xxxxxxxx| Write
22 ; ||||||||
23 ; ||||||||_____bit 0: enable FDC INTRQ to appear on read location $0314 and to drive cpu IRQ
24 ; |||||||_____ bit 1: ROMDIS (active low). When 0, internal Basic rom is disabled.
25 ; ||||||______ bit 2: along with bit 3, selects the data separator clock divisor (1: double density, 0: single-density)
26 ; |||||_______ bit 3: double density enable (0: double density, 1: single density)
27 ; ||||________ bit 4: side select
28 ; |||_________ bits 56: drive select (0 to 3)
29 ; |___________ bit 7: Eprom select (active low)
30 ;
31 ; %10000101 -> Eprom deselected, double density, ROM disabled, irq enabled
32 ; %10000001 ->
33
34 ; $0318
35 ; bit 7: DRQ state (active low)
36
37 #define CMD_Seek $1F
38 #define CMD_ReadSector $80
39

  ViewVC Help
Powered by ViewVC 1.1.26