IDE controller registers

All 680x0 related coding posts in this section please.

Moderators: simonsunnyboy, Mug UK, Zorro 2, Moderator Team

User avatar
paul92706
Atari God
Atari God
Posts: 1469
Joined: Mon Apr 25, 2011 4:28 am
Location: Orange, CA

IDE controller registers

Postby paul92706 » Fri Jul 18, 2014 2:13 am

Hi guys, im looking for a coding strucutre to access my IDE HD Controller registers on the IDE Harddrive. Could some please me shoot some good examples of code to accessing the registers threw address range $F00000-$F00039 in Assembly Language. Also i am using Assemble Software. Thanks so kindly!
Last edited by paul92706 on Fri Jul 18, 2014 3:23 pm, edited 1 time in total.
Atari Falcon CT60/CTPCI 14MB+ 512mb ATI9250 + NetUSBee
Atari Falcon030 CF 4gb + NetUSBee+ 14MB Ram
Atari TT030 2meg STRAM/16meg TTRAM + Nova Adaptor +Maxtor SCSI HD + DaynaPort Pocket SCSI

User avatar
bod/STAX
Atari Super Hero
Atari Super Hero
Posts: 508
Joined: Wed Nov 24, 2004 8:13 pm
Location: Halesowen, West Midlands, England

Re: IDE controller registers

Postby bod/STAX » Fri Jul 18, 2014 7:22 am

So let it be written, So let it be done. I'm sent here by the chosen one.

seedy1812
Atari User
Atari User
Posts: 37
Joined: Tue May 18, 2010 2:04 pm

Re: IDE controller registers

Postby seedy1812 » Fri Jul 18, 2014 2:41 pm

Abacus did a book which has a lot of info : ST Disk Drives Inside and Out

User avatar
paul92706
Atari God
Atari God
Posts: 1469
Joined: Mon Apr 25, 2011 4:28 am
Location: Orange, CA

Re: IDE controller registers

Postby paul92706 » Fri Jul 18, 2014 3:21 pm


Hi there, thanks for that, but i am already familiar with the registers, i just need a sample code structure for accessing registers in Assembly.
Atari Falcon CT60/CTPCI 14MB+ 512mb ATI9250 + NetUSBee
Atari Falcon030 CF 4gb + NetUSBee+ 14MB Ram
Atari TT030 2meg STRAM/16meg TTRAM + Nova Adaptor +Maxtor SCSI HD + DaynaPort Pocket SCSI

User avatar
paul92706
Atari God
Atari God
Posts: 1469
Joined: Mon Apr 25, 2011 4:28 am
Location: Orange, CA

Re: IDE controller registers

Postby paul92706 » Fri Jul 18, 2014 3:22 pm

seedy1812 wrote:Abacus did a book which has a lot of info : ST Disk Drives Inside and Out

I wonder if it has some basic structure of access to the HD controller in assembly?
Atari Falcon CT60/CTPCI 14MB+ 512mb ATI9250 + NetUSBee
Atari Falcon030 CF 4gb + NetUSBee+ 14MB Ram
Atari TT030 2meg STRAM/16meg TTRAM + Nova Adaptor +Maxtor SCSI HD + DaynaPort Pocket SCSI

seedy1812
Atari User
Atari User
Posts: 37
Joined: Tue May 18, 2010 2:04 pm

Re: IDE controller registers

Postby seedy1812 » Fri Jul 18, 2014 3:51 pm

I believe it did , but not sure if I still have the book , if I do its 300+ miles away :(

User avatar
Cyprian
10 GOTO 10
10 GOTO 10
Posts: 1718
Joined: Fri Oct 04, 2002 11:23 am
Location: Warsaw, Poland

Re: IDE controller registers

Postby Cyprian » Fri Jul 18, 2014 4:29 pm

check this one:
Atari ST - Disk Drives: Inside and Out (Abacus #13) [1987]
http://dev-docs.atariforge.org/html/search.php?find=_q
Lynx II / Jaugar / TT030 / Mega STe / 800 XL / 1040 STe / Falcon030 / 65 XE / 520 STm / SM124 / SC1435
SDrive / PAK68/3 / Lynx Multi Card / LDW Super 2000 / XCA12 / SkunkBoard / CosmosEx / SatanDisk / UltraSatan / USB Floppy Drive Emulator / Eiffel / SIO2PC / Crazy Dots / PAM Net
Hatari / Steem SSE / Aranym / Saint
http://260ste.appspot.com/

User avatar
paul92706
Atari God
Atari God
Posts: 1469
Joined: Mon Apr 25, 2011 4:28 am
Location: Orange, CA

Re: IDE controller registers

Postby paul92706 » Fri Jul 18, 2014 5:37 pm

Cyprian wrote:check this one:
Atari ST - Disk Drives: Inside and Out (Abacus #13) [1987]
http://dev-docs.atariforge.org/html/search.php?find=_q

Hi Cyprian thanks for the link, lots of great info, but the Atari St- Disk Drives book is focused more on the old SH-204 MFM HD controller, im looking just for a basic structure of IDE controller Registers access in Assembly.Im not looking for complex pages and pages of code, just simple code to access a few basic registers, im just getting the feel for this. Thanks anyhow! :mrgreen:
Atari Falcon CT60/CTPCI 14MB+ 512mb ATI9250 + NetUSBee
Atari Falcon030 CF 4gb + NetUSBee+ 14MB Ram
Atari TT030 2meg STRAM/16meg TTRAM + Nova Adaptor +Maxtor SCSI HD + DaynaPort Pocket SCSI

User avatar
mfro
Atari Super Hero
Atari Super Hero
Posts: 806
Joined: Thu Aug 02, 2012 10:33 am
Location: SW Germany

Re: IDE controller registers

Postby mfro » Fri Jul 18, 2014 8:10 pm

As the IDE controller is implemented on disk (and as such not specific to ATARI), you can use literally _any_ documentation available on the Internet.

If you understand C code, I'd recommend studying the EmuTOS code (bios/ide.c). Simple and easy to understand. Shouldn't be much of a problem to translate the code into assembler (basically, you just need to write and read registers in a specific sequence).

User avatar
paul92706
Atari God
Atari God
Posts: 1469
Joined: Mon Apr 25, 2011 4:28 am
Location: Orange, CA

Re: IDE controller registers

Postby paul92706 » Sat Jul 19, 2014 3:02 pm

mfro wrote:As the IDE controller is implemented on disk (and as such not specific to ATARI), you can use literally _any_ documentation available on the Internet.

If you understand C code, I'd recommend studying the EmuTOS code (bios/ide.c). Simple and easy to understand. Shouldn't be much of a problem to translate the code into assembler (basically, you just need to write and read registers in a specific sequence).

Hi mfrom, thanks for your info, i was kinda hoping to avoid the searching/translating for code on the web, i really just wanted some basic structure of code to get me started. But i guess i will for sure look into that EmuTOS (dios/ide.c) coding. :mrgreen:
Atari Falcon CT60/CTPCI 14MB+ 512mb ATI9250 + NetUSBee
Atari Falcon030 CF 4gb + NetUSBee+ 14MB Ram
Atari TT030 2meg STRAM/16meg TTRAM + Nova Adaptor +Maxtor SCSI HD + DaynaPort Pocket SCSI


Social Media

     

Return to “680x0”

Who is online

Users browsing this forum: No registered users and 6 guests