From 6174606ba797779c2cda8ee4cf46c4c5b7669afe Mon Sep 17 00:00:00 2001 From: Anatoliy Belyanskiy Date: Sun, 30 Jul 2023 03:54:14 +1000 Subject: [PATCH] ... --- constants/SP2000.inc | 14 ++++++++++++-- 1 file changed, 12 insertions(+), 2 deletions(-) diff --git a/constants/SP2000.inc b/constants/SP2000.inc index edb83d8..5203890 100644 --- a/constants/SP2000.inc +++ b/constants/SP2000.inc @@ -1604,9 +1604,19 @@ ControlBit: ; Bits for HardDrive.Read.Status .DataRequest EQU 3 ; DRQ .AlignmentError EQU 2 .SenseDataAvailable EQU 1 -.Error EQU 0 ; ERR +.Error EQU 0 ; Indicates an error occurred. Send a new command to clear it (or nuke it with a Software Reset). .CheckCondition EQU .Error - +/* +Bit Abbreviation Function +0 ERR Indicates an error occurred. Send a new command to clear it (or nuke it with a Software Reset). +1 IDX Index. Always set to zero. +2 CORR Corrected data. Always set to zero. +3 DRQ Set when the drive has PIO data to transfer, or is ready to accept PIO data. +4 SRV Overlapped Mode Service Request. +5 DF Drive Fault Error (does not set ERR). +6 RDY Bit is clear when drive is spun down, or after an error. Set otherwise. +7 BSY Indicates the drive is preparing to send/receive data (wait for it to clear). In case of 'hang' (it never clears), do a software reset. +*/ Chanel: .Set_0: EQU #20BC ; для использования с полной адресацией (рег BC), заслать '1' .Set_1: EQU #00BC ; для использования с полной адресацией (рег BC), заслать '1'