|
Post by mirkosoft on Dec 12, 2019 0:09:33 GMT
Hi!
I want to ask how is possible to get current accessed track and sector number while accessing disk? I need something similar to CP/M indicator of RW TRK/SEC of any drive.
Thank you for help. Miro
|
|
Oziphantom being lazy
Guest
|
Post by Oziphantom being lazy on Dec 12, 2019 4:30:37 GMT
|
|
|
Post by cbmguy on Dec 12, 2019 14:35:58 GMT
If you read the memory address of a 1541, they are stored here. 1571 would be the same. I was looking at this a while ago and didn't find a universal method so I thought of making 'drivers' for each drive, sharing what I could as core disk drive procedures amoung them. That method would mean transfering blocks of data at a time yourself and controlling that data as it happens -- rather than relying solely on the kernal stuff for automating it all. I don't have access to my 1581 books right now, so I'm not too sure what those address in its ROM would be. The track/sector can be read from the block, itself, as well, which makes things a little more universal in regards to coding a core set of universal functions. I've used that last method when using some low level burst protocals -- the first block using burst can be a little buggy depending on the amount of data in the block on the sector... I'm rambling... sorry. 1541/71: $0016-$0017 Header ID from header of sector last read from disk. $0018-$0019 Track and sector number from header of sector last read from disk. m-r would do the trick for you. ist.uwaterloo.ca/~schepers/MJK/ascii/1541map.txt~ c
|
|
|
Post by mirkosoft on Dec 12, 2019 23:09:50 GMT
Yes, thank you very very much! I was searching in 1551 and 1571 map too and found it.
Thank you really really very much. Miro
|
|