This commit is contained in:
Tolik 2024-08-18 07:03:44 +10:00
parent e73e9f8d4f
commit b541d42218

View File

@ -716,8 +716,12 @@ SYS_PAGE EQU #FE
.Sp_RAMD_KEYS.T EQU #C1FF .Sp_RAMD_KEYS.T EQU #C1FF
.Sp_RAMD_KEYS.NUM EQU .RAMD_KEYS.NUM .Sp_RAMD_KEYS.NUM EQU .RAMD_KEYS.NUM
; ;
.RAMD_FAT EQU #C200 ; RAM Table //°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°
.RAMD_FAT EQU #C200 ; ALIGN 256 ; RAM Table
.RAMD_FAT.Size EQU 256
//°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°
.MS_BPB EQU #C400 ; ¡ãä¥à BPB .MS_BPB EQU #C400 ; ¡ãä¥à BPB
//°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°
; IDENTIFY ATA buffer ; IDENTIFY ATA buffer
.HD_IDF_ADR EQU #C600 ; !FIXIT áâàãªâãன ᤥ« âì!!! .HD_IDF_ADR EQU #C600 ; !FIXIT áâàãªâãன ᤥ« âì!!!
.HD_IDF_ADR.sec_cyl EQU .HD_IDF_ADR+4 .HD_IDF_ADR.sec_cyl EQU .HD_IDF_ADR+4
@ -725,7 +729,6 @@ SYS_PAGE EQU #FE
.HD_IDF_ADR.sectors EQU .HD_IDF_ADR+12 ; Number of sectors per track .HD_IDF_ADR.sectors EQU .HD_IDF_ADR+12 ; Number of sectors per track
.HD_IDF_ADR.LBA_CHS EQU .HD_IDF_ADR+99 ; LBA/CHS .HD_IDF_ADR.LBA_CHS EQU .HD_IDF_ADR+99 ; LBA/CHS
.HD_IDF_ADR.ModelNum EQU .HD_IDF_ADR+54 .HD_IDF_ADR.ModelNum EQU .HD_IDF_ADR+54
;
//°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°° //°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°
.MS_DIR EQU #C800 ; ¡ãä¥à DIR sector .MS_DIR EQU #C800 ; ¡ãä¥à DIR sector
//°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°° //°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°
@ -749,7 +752,9 @@ SYS_PAGE EQU #FE
.TASK_2_DATA ZX_TASK_DATA = #EC30 .TASK_2_DATA ZX_TASK_DATA = #EC30
.TASK_3_DATA ZX_TASK_DATA = #EC40 .TASK_3_DATA ZX_TASK_DATA = #EC40
//°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°° //°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°
;!TODO EQU #EC50 - #EFFF .SHARED_BUFFER_256b EQU #EC50 - #EFFF ; 256 ¡ ©â
//°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°
;!TODO EQU #ED50 - #EFFF
.RESTART_ID EQU #F000 ; db "RESTART",0 ;First start identificator .RESTART_ID EQU #F000 ; db "RESTART",0 ;First start identificator
@ -1141,7 +1146,7 @@ Chip_ID:
.K50 EQU #3C7B .K50 EQU #3C7B
; ;
; ¢­ãâ७­¨¥ ¯®àâë Altera (ç áâ¨ç­® ­¥à §®¡à ­® ®â Sp97) ; ¢­ãâ७­¨¥ ¯®àâë Altera (ç áâ¨ç­® ­¥à §®¡à ­® ®â Sp97)
;00 <EFBFBD>¥â ¯®àâ  ;#00 <09>¥â ¯®àâ 
;#01 reserved ;#01 reserved
;#02 reserved ;#02 reserved
;#03 reserved ;#03 reserved
@ -1659,23 +1664,23 @@ INIT_TBL_IDE3 HDD_INIT_TABLE = SYS_PAGE.IDE_3 ; !HARDC
Write: Write:
.Data EQU #0150 ; cnf 20 ; HDW_DAT W170 ; #1F0 Data register .Data EQU #0150 ; cnf 20 ; HDW_DAT W170 ; #1F0 Data register
.Features EQU #0151 ; cnf 21 ; HDW_ERR W171 ; #1F1 Features register .Features EQU #0151 ; cnf 21 ; HDW_ERR W171 ; #1F1 Features register
.Counter EQU #0152 ; cnf 22 ; HDW_CNT P_S_CNT W172 ; #1F2 Counter register .Counter EQU #0152 ; cnf 22 ; HDW_CNT P_S_CNT W172; #1F2 Counter register
.Sector EQU #0153 ; cnf 23 ; HDW_SEC P_S_NUM W173 ; #1F3 Sector register .Sector EQU #0153 ; cnf 23 ; HDW_SEC P_S_NUM W173; #1F3 Sector register
.CylinderLow EQU #0154 ; cnf 24 ; HDW_CLL P_C_LOW W174 ; #1F4 Cylinder Low register .CylinderLow EQU #0154 ; cnf 24 ; HDW_CLL P_C_LOW W174; #1F4 Cylinder Low register
.CylinderHigh EQU #0155 ; cnf 25 ; HDW_CLH P_C_HIG W175 ; #1F5 Cylinder High register .CylinderHigh EQU #0155 ; cnf 25 ; HDW_CLH P_C_HIG W175; #1F5 Cylinder High register
.DeviceHead EQU #4152 ; cnf 26 ; HDW_DRV P_HD_CS ; #1F6 Device/Head register .DeviceHead EQU #4152 ; cnf 26 ; HDW_DRV P_HD_CS ; #1F6 Device/Head register
.Command EQU #4153 ; cnf 27 ; HDW_COM P_CMD ; #1F7 Command register .Command EQU #4153 ; cnf 27 ; HDW_COM P_CMD ; #1F7 Command register
.DeviceControl EQU #4154 ; cnf 28 ; ; #3F6 Device Control register .DeviceControl EQU #4154 ; cnf 28 ; ; #3F6 Device Control register
Read: Read:
.Data EQU #0050 ; cnf 20 ; HDR_DAT P_DATS R170 ; #1F0 Data register .Data EQU #0050 ; cnf 20 ; HDR_DAT P_DATS R170; #1F0 Data register
.Error EQU #0051 ; cnf 21 ; HDR_ERR P_ERR R171 ; #1F1 Error register .Error EQU #0051 ; cnf 21 ; HDR_ERR P_ERR R171; #1F1 Error register
.Counter EQU #0052 ; cnf 22 ; HDR_CNT R172 ; #1F2 Counter register .Counter EQU #0052 ; cnf 22 ; HDR_CNT R172; #1F2 Counter register
.Sector EQU #0053 ; cnf 23 ; HDR_SEC R173 ; #1F3 Sector register .Sector EQU #0053 ; cnf 23 ; HDR_SEC R173; #1F3 Sector register
.CylinderLow EQU #0054 ; cnf 24 ; HDR_CLL R174 ; #1F4 Cylinder Low register .CylinderLow EQU #0054 ; cnf 24 ; HDR_CLL R174; #1F4 Cylinder Low register
.CylinderHigh EQU #0055 ; cnf 25 ; HDR_CLH R175 ; #1F5 Cylinder High register .CylinderHigh EQU #0055 ; cnf 25 ; HDR_CLH R175; #1F5 Cylinder High register
.Control EQU #4052 ; cnf 26 ; HDR_DRV R176 ; #1F6 Device/Head register .Control EQU #4052 ; cnf 26 ; HDR_DRV R176; #1F6 Device/Head register
.Status EQU #4053 ; cnf 27 ; HDR_CTL P_HDST R177 ; #1F7 Status (Control) register .Status EQU #4053 ; cnf 27 ; HDR_CTL P_HDST R177; #1F7 Status (Control) register
.AltStatus EQU #4054 ; cnf 28 ; ; #3F6 Alternate Status register .AltStatus EQU #4054 ; cnf 28 ; ; #3F6 Alternate Status register
.DrvAddress EQU #4055 ; cnf 29 ; ; #3F7 .DrvAddress EQU #4055 ; cnf 29 ; ; #3F7
@ -1692,7 +1697,7 @@ ControlBit: ; 0000 0000 ; Bits for IDE.Read.Status
.SeekComplete EQU 4;ÄÄÄÄÄÄÄÄÄÄÄÙ ³³³³ ; Service for ATAPI .SeekComplete EQU 4;ÄÄÄÄÄÄÄÄÄÄÄÙ ³³³³ ; Service for ATAPI
.DataRequest EQU 3;ÄÄÄÄÄÄÄÄÄÄÄÄÄÙ³³³ ; DRQ .DataRequest EQU 3;ÄÄÄÄÄÄÄÄÄÄÄÄÄÙ³³³ ; DRQ
.CorrectedData EQU 2;ÄÄÄÄÄÄÄÄÄÄÄÄÄÄÙ³³ obsolete .CorrectedData EQU 2;ÄÄÄÄÄÄÄÄÄÄÄÄÄÄÙ³³ obsolete
.Index EQU 1;ÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÙ³ obsolete .SenseDataAvailable .Index EQU 1;ÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÙ³ obsolete ; .SenseDataAvailable
.Error EQU 0;ÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÙ ; Indicates an error occurred. Send a new command to clear it (or nuke it with a Software Reset). .Error EQU 0;ÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÙ ; Indicates an error occurred. Send a new command to clear it (or nuke it with a Software Reset).
.CheckCondition EQU .Error .CheckCondition EQU .Error
.StreamError EQU .Fault .StreamError EQU .Fault
@ -2296,11 +2301,11 @@ REG:
;HDW_CLH EQU #0155 ; #1F5 Cylinder High ;HDW_CLH EQU #0155 ; #1F5 Cylinder High
;P_C_HIG EQU #0155 ;P_C_HIG EQU #0155
;HDW_CLL EQU #0154 ; #1F4 Cylinder Low ;HDW_CLL EQU #0154 ; #1F4 Cylinder Low
;P_C_LOW EQU #154 ;P_C_LOW EQU #0154
;HDW_SEC EQU #0153 ; #1F3 Sector ;HDW_SEC EQU #0153 ; #1F3 Sector
;P_S_NUM EQU #0153 ;P_S_NUM EQU #0153
;HDW_CNT EQU #0152 ; #1F2 Counter ;HDW_CNT EQU #0152 ; #1F2 Counter
;P_S_CNT EQU #152 ;P_S_CNT EQU #0152
;HDW_ERR EQU #0151 ; #1F1 Error ;HDW_ERR EQU #0151 ; #1F1 Error
;HDW_DAT EQU #0150 ; #1F0 Data ;HDW_DAT EQU #0150 ; #1F0 Data
;HDR_CTL EQU #4053 ; #1F7 Status (Control) ;HDR_CTL EQU #4053 ; #1F7 Status (Control)
@ -2311,9 +2316,9 @@ REG:
;HDR_SEC EQU #0053 ; #1F3 Sector ;HDR_SEC EQU #0053 ; #1F3 Sector
;HDR_CNT EQU #0052 ; #1F2 Counter ;HDR_CNT EQU #0052 ; #1F2 Counter
;HDR_ERR EQU #0051 ; #1F1 Error ;HDR_ERR EQU #0051 ; #1F1 Error
;P_ERR EQU #051 ; READ ;P_ERR EQU #0051 ; READ
;HDR_DAT EQU #0050 ; #1F0 Data ;HDR_DAT EQU #0050 ; #1F0 Data
;P_DATS EQU #50 ; READ/WRITE INIR/OTIR ;P_DATS EQU #0050 ; READ/WRITE INIR/OTIR
;;Bits for HDR_CTL ;;Bits for HDR_CTL
;;---[] ;;---[]