6502.org Forum  Projects  Code  Documents  Tools  Forum
It is currently Wed Jun 05, 2024 6:44 pm

All times are UTC




Post new topic Reply to topic  [ 4 posts ] 
Author Message
PostPosted: Mon Sep 20, 2021 7:49 am 
Offline

Joined: Tue Jun 19, 2018 8:28 am
Posts: 122
In my 6502 based computer im implemented commodore bus port, thinking of future support of 1541 drive or its modern SD card based equivalent. It isn't direct copy of commodore circuit because I replaced PIA chip with Intel 8255 parallel port, so I am aware that I will have to rewrite low level I/O routines.
Now I am looking for some 6502 assembly code implementation of communication protocol. If there is some easy way to add 1541 support to my computer assuming that I have working bus? As far I know most of the heavy lifting (reading/writing sectors, file system support) is done by the drive itself, so what code I need to implement on my computer?


Top
 Profile  
Reply with quote  
PostPosted: Mon Sep 20, 2021 10:06 am 
Offline

Joined: Thu Mar 12, 2020 10:04 pm
Posts: 693
Location: North Tejas
Try to find books about the 1541 disk drive or Commodore DOS. If I recall, they were quite detailed.

There were also projects you can find on the Internet about interfacing the drive to other computer systems like a PC.


Top
 Profile  
Reply with quote  
PostPosted: Mon Sep 20, 2021 1:55 pm 
Offline

Joined: Sun Nov 08, 2009 1:56 am
Posts: 390
Location: Minnesota
A free PDF detailing how to control the 1541 at a low level:

https://www.pagetable.com/?p=630

Not free, but "Anatomy of the 1541" includes a ROM listing:

https://www.ebay.com/p/1200433?iid=154552079476

That one is from Abacus. https://www.lemon64.com/ has a free copy of a book by the same name from Data Becker.


Top
 Profile  
Reply with quote  
PostPosted: Sat Sep 25, 2021 1:40 am 
Offline
User avatar

Joined: Sat Dec 01, 2018 1:53 pm
Posts: 727
Location: Tokyo, Japan
I have written up a summary of the bus hardware and protocol, which is the initial bit you need to be able to send and receive packets, talk to devices, open and close channels, and so on. That lower layer is device-independent, so you can use it to talk to printers and the like as well as diskette drives. There are also plenty of links there to more detailed documentation that you will almost certainly need both to completely understand the summary and to implement the protocol. (The summary aims to be a reminder of how it works, not a detailed specification.)

Some of the links also give information on the higher-level protocol run on top of this to talk to the disk drives. Inside Commodore DOS is probably the best of these, though if you're using the CBM DOS and file system you won't actually need too much of that book.

_________________
Curt J. Sampson - github.com/0cjs


Top
 Profile  
Reply with quote  
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 4 posts ] 

All times are UTC


Who is online

Users browsing this forum: No registered users and 25 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to: