This commit is contained in:
Anatoliy Belyanskiy 2023-08-01 02:56:15 +10:00
parent 785b2adeb8
commit 53e49fa3cc

View File

@ -598,6 +598,10 @@ SYS_PAGE EQU #FE
.USER_VARS EQU #F018 ; ¯¥à¥¬¥­­ë¥ ¯®«ì§®¢ â¥«ï
.RAM_ATAPI_PK EQU #FEE0; - #FEEC
;!TODO EQU #FEED - #FEEF
.RAM_ATAPI_READ EQU #FEF0; - #FEFC
;!TODO EQU #FEFD - #FEFF
.CMOS_EMULATOR EQU #FF00
.USER_VARS_2 EQU .CMOS_EMULATOR + CMOS.MAX_ADDRESS + 1
;------------[ OLD ]-------------;
@ -1576,24 +1580,24 @@ INIT_TBL_IDE2 HDD_INIT_TABLE = SYS_PAGE.IDE_2 ; !HARDC
INIT_TBL_IDE3 HDD_INIT_TABLE = SYS_PAGE.IDE_3 ; !HARDCODE table in SYS_PAGE
Write:
.DriveCtrl EQU #4152 ; HDW_DRV P_HD_CS ; #1F6 Drive Control
.Command EQU #4153 ; HDW_COM P_CMD ; #1F7 Command
.Data EQU #0150 ; HDW_DAT W170 ; #1F0 Data
.Error EQU #0151 ; HDW_ERR W171 ; #1F1 Error
.Counter EQU #0152 ; HDW_CNT P_S_CNT W172 ; #1F2 Counter
.Sector EQU #0153 ; HDW_SEC P_S_NUM W173 ; #1F3 Sector
.CylinderLow EQU #0154 ; HDW_CLL P_C_LOW W174 ; #1F4 Cylinder Low
.CylinderHigh EQU #0155 ; HDW_CLH P_C_HIG W175 ; #1F5 Cylinder High
.DriveCtrl EQU #4152 ; HDW_DRV P_HD_CS - #1F6 Drive Control
.Command EQU #4153 ; HDW_COM P_CMD - #1F7 Command
.Data EQU #0150 ; HDW_DAT W170 - #1F0 Data
.Error EQU #0151 ; HDW_ERR W171 - #1F1 Error
.Counter EQU #0152 ; HDW_CNT P_S_CNT W172 - #1F2 Counter
.Sector EQU #0153 ; HDW_SEC P_S_NUM W173 - #1F3 Sector
.CylinderLow EQU #0154 ; HDW_CLL P_C_LOW W174 - #1F4 Cylinder Low
.CylinderHigh EQU #0155 ; HDW_CLH P_C_HIG W175 - #1F5 Cylinder High
Read:
.Control EQU #4052 ; HDR_DRV R176 ; #1F6 Drive Control
.Status EQU #4053 ; HDR_CTL P_HDST R177 ; #1F7 Status (Control)
.Data EQU #0050 ; HDR_DAT P_DATS R170 ; #1F0 Data
.Error EQU #0051 ; HDR_ERR P_ERR R171 ; #1F1 Error
.Counter EQU #0052 ; HDR_CNT R172 ; #1F2 Counter
.Sector EQU #0053 ; HDR_SEC R173 ; #1F3 Sector
.CylinderLow EQU #0054 ; HDR_CLL R174 ; #1F4 Cylinder Low
.CylinderHigh EQU #0055 ; HDR_CLH R175 ; #1F5 Cylinder High
.Control EQU #4052 ; HDR_DRV R176 - #1F6 Drive Control
.Status EQU #4053 ; HDR_CTL P_HDST R177 - #1F7 Status (Control)
.Data EQU #0050 ; HDR_DAT P_DATS R170 - #1F0 Data
.Error EQU #0051 ; HDR_ERR P_ERR R171 - #1F1 Error
.Counter EQU #0052 ; HDR_CNT R172 - #1F2 Counter
.Sector EQU #0053 ; HDR_SEC R173 - #1F3 Sector
.CylinderLow EQU #0054 ; HDR_CLL R174 - #1F4 Cylinder Low
.CylinderHigh EQU #0055 ; HDR_CLH R175 - #1F5 Cylinder High
ControlBit: ; Bits for HardDrive.Read.Status
.Busy EQU 7 ; BSY