On Fri, 6 Feb 1998, Marco Antonio Simon dal Poz wrote:
> 
> Ok, you can use the PHYDIO routine in the following way:
> HL=memory address where data will be read or written
> DE=starting sector from disk, beginning from zero
> B=number of sectors to be transfered

> C=type of disk: FC=40 tracks single sided disk
>               FD=40 tracks double sided disk

These two were new to me, thanx.

>               F8=80 tracks single sided disk
>               F9=80 tracks double sided disk
> A=number of drive (0=A, 1=B, 2=C, 3=D) there's no drive default
> if CARRY FLAG is reset, sectors will be read
> if CARRY FLAG is set, sectors will be written
> 
> After load these registers with the desired values, you can call the
> PHYDIO routine through addresses 0144h or FFA7h. I think that if you
> modify the contents of the hook FFA7h, you can create your emulator.

When I followwed #FFA7 it was going to same address, than JP from #4010,
so it should work, and disk-drive was not running anytime, when I tested.

> 
> The exit code of the PHYDIO routine is CARRY FLAG and register A. If carry
> flag is reset, the operation was successfully completed. Else, register A
> will have an error code. I don't know the error codes, but if you do some
> tests, you can easily detect the write-protection detected code.

Yes, I have these errors, but I have not emulated them yet.

> 
> If you were using physical I/O, could you say me how do you do this using
> a memory address-based disk-interface?

Well, actually I don't know. There is just ready routine for "RAW" read
from HD in SCSI bios. I have also probblem, where to find what partition
is now enabled in drive X: and where to find ID of drive X: Now I have to
input them before I can start.

                            ,_____.
                    _=_=_=_=!_MSX_!=_=_=_=_=_=_=_=_,
                   ! A1ST ~--- - I  ( o o o o o o )i
                  /--------------------------------`,
                 / .::::::::::::::::::::::;::;  ::::.,
                / :::.:.:.:::____________:::::!.  -=- `,
                ~======================================
                       NYYRIKKI : [EMAIL PROTECTED]


****
MSX Mailinglist. To unsubscribe, send an email to [EMAIL PROTECTED] and put
in the body (not subject) "unsubscribe msx [EMAIL PROTECTED]" (without the
quotes :-) Problems? contact [EMAIL PROTECTED] (www.stack.nl/~wiebe/mailinglist/)
****

Reply via email to