/[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 1024 - (show annotations)
Sun Dec 15 09:42:42 2013 UTC (5 years, 10 months ago) by dbug
File MIME type: text/plain
File size: 1787 byte(s)
Generic clean-up of the loader code, moved the vectors at the end of the file so they get auto-magically setup when the loader is installed in memory.
Fixed a bug in the bootsector which did not actually know the actual length of the loader.
First transition effect (simple top/bottom copy), makes the whole thing feel smoother.
New LoaderAPI command: _SetLoadAddress, can be used to override the location of where files get loaded.
1 ;
2 ; http://oric.free.fr/programming.html#disc
3 ;
4 #define location_loader $fc00
5 #define wait_status_floppy 30
6
7 #define FDC_command_register $0310
8 #define FDC_status_register $0310
9 #define FDC_track_register $0311
10 #define FDC_sector_register $0312
11 #define FDC_data $0313
12
13
14 ; ____________ 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.
15 ; |
16 ; |x.......| Read
17 #define MICRODISC $0314
18 ; |xxxxxxxx| Write
19 ; ||||||||
20 ; ||||||||_____bit 0: enable FDC INTRQ to appear on read location $0314 and to drive cpu IRQ
21 ; |||||||_____ bit 1: ROMDIS (active low). When 0, internal Basic rom is disabled.
22 ; ||||||______ bit 2: along with bit 3, selects the data separator clock divisor (1: double density, 0: single-density)
23 ; |||||_______ bit 3: double density enable (0: double density, 1: single density)
24 ; ||||________ bit 4: side select
25 ; |||_________ bits 56: drive select (0 to 3)
26 ; |___________ bit 7: Eprom select (active low)
27 ;
28 ; %10000101 -> Eprom deselected, double density, ROM disabled, irq enabled
29 ; %10000001 ->
30
31 ; $0318
32 ; bit 7: DRQ state (active low)
33
34 #define CMD_Seek $1F
35 #define CMD_ReadSector $80
36

  ViewVC Help
Powered by ViewVC 1.1.26