mirror of
https://github.com/Tolik-Trek/Sprinter-BIOS.git
synced 2026-06-15 17:31:46 +03:00
test: концовка ATAPI_5x_RESET
поправлен перехват ресета, чтоб дважды не срабатывал
This commit is contained in:
parent
684c3228ee
commit
ee91527944
@ -1 +1 @@
|
|||||||
Subproject commit a26f6ad2cf2eab977cab8baa0c83b0c2a91a5e53
|
Subproject commit f75e25771d6c7048f1c43f9494d3890d907ab68f
|
||||||
@ -839,6 +839,8 @@ Check_EE_Port: LD A,ACEX.RET_PORT
|
|||||||
OUT (SLOT1),A
|
OUT (SLOT1),A
|
||||||
LD A,(Spec_Page.page_2) ; PAGE2
|
LD A,(Spec_Page.page_2) ; PAGE2
|
||||||
OUT (SLOT2),A
|
OUT (SLOT2),A
|
||||||
|
XOR A
|
||||||
|
LD (Spec_Page.flag_R),A
|
||||||
LD A,(Spec_Page.Reload_Version)
|
LD A,(Spec_Page.Reload_Version)
|
||||||
CP #FF
|
CP #FF
|
||||||
JR Z,.JPHL ; olg logic
|
JR Z,.JPHL ; olg logic
|
||||||
|
|||||||
@ -25,7 +25,6 @@ _ZIP_WAITS_ EQU 128
|
|||||||
ASSERT ((PACKET_SIZE % 4) = 0), "PACKET_SIZE must be an even number"
|
ASSERT ((PACKET_SIZE % 4) = 0), "PACKET_SIZE must be an even number"
|
||||||
|
|
||||||
;[]================================================================[#51]
|
;[]================================================================[#51]
|
||||||
;!FIXIT ᤥ« âì áâ®ï騩 à¥á¥â
|
|
||||||
ATAPI_5x_RESET: LD C,IDE.Device.ATAPI
|
ATAPI_5x_RESET: LD C,IDE.Device.ATAPI
|
||||||
CALL SELECT_DRIVE
|
CALL SELECT_DRIVE
|
||||||
RET C
|
RET C
|
||||||
@ -59,15 +58,9 @@ ATAPI_5x_RESET: LD C,IDE.Device.ATAPI
|
|||||||
DJNZ .loop
|
DJNZ .loop
|
||||||
LD A,C
|
LD A,C
|
||||||
AND A
|
AND A
|
||||||
|
;RET Z
|
||||||
SCF
|
SCF
|
||||||
RET NZ
|
|
||||||
RET
|
RET
|
||||||
/*
|
|
||||||
HL = 1e00
|
|
||||||
B = 1
|
|
||||||
ATAPI_WAITPRT.LOOP
|
|
||||||
DE = 00FF
|
|
||||||
*/
|
|
||||||
;[]================================================================[#51]
|
;[]================================================================[#51]
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
@ -6,8 +6,8 @@
|
|||||||
|
|
||||||
/*
|
/*
|
||||||
;Write
|
;Write
|
||||||
IDE.Write.Command EQU #4153 ; #1F7 Command
|
IDE.Write.Command EQU #4153 ; #1F7 Command
|
||||||
IDE.Write.DeviceHead EQU #4152 ; #1F6 Drive Control
|
IDE.Write.DeviceHead EQU #4152 ; #1F6 Drive Control
|
||||||
|
|
||||||
HDW_CLH EQU #0155 ; #1F5 Cylinder High
|
HDW_CLH EQU #0155 ; #1F5 Cylinder High
|
||||||
HDW_CLL EQU #0154 ; #1F4 Cylinder Low
|
HDW_CLL EQU #0154 ; #1F4 Cylinder Low
|
||||||
@ -17,7 +17,7 @@ HDW_ERR EQU #0151 ; #1F1 Error
|
|||||||
HDW_DAT EQU #0150 ; #1F0 Data
|
HDW_DAT EQU #0150 ; #1F0 Data
|
||||||
|
|
||||||
;Read
|
;Read
|
||||||
IDE.Read.Status EQU #4053 ; #1F7 Status (Control)
|
IDE.Read.Status EQU #4053 ; #1F7 Status (Control)
|
||||||
HDR_DRV EQU #4052 ; #1F6 Drive Control
|
HDR_DRV EQU #4052 ; #1F6 Drive Control
|
||||||
|
|
||||||
HDR_CLH EQU #0055 ; #1F5 Cylinder High
|
HDR_CLH EQU #0055 ; #1F5 Cylinder High
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user