;************************************************ ;* Disk System Header Equate File * ;* File name: diskhdr.equ * ;* Last update: 11/10/83 * ;************************************************ ; ; Read and Write disk parameter equates ; ; At the disk read and write function entrys ; all disk I/O parameters are on the stack ; and the stack at these entrys appears as ; follows: ; ; +-------+-------+ ; +14 | DRV | MCNT | Drive and Multi sector count ; +-------+-------+ ; +12 | TRACK | Track number ; +-------+-------+ ; +10 | SECTOR | Physical sector number ; +-------+-------+ ; +8 | DMA_SEG | DMA segment ; +-------+-------+ ; +6 | DMA_OFF | DMA offset ; +-------+-------+ ; +4 | RET_SEG | BDOS return segment ; +-------+-------+ ; +2 | RET_OFF | BDOS return offset ; +-------+-------+ ; SP+0 | RET_ADR | Local entry return address ; +-------+-------+ ; ; These parameters may be indexed and modifide ; directly on the stack and will be removed ; by the BDOS after the function is complete ; These are the euates for the above pictured data structure DRIVE equ byte ptr 14[bp] MCNT equ byte ptr 15[bp] TRACK equ word ptr 12[bp] SECTOR equ word ptr 10[bp] DMASEG equ word ptr 8[bp] DMAOFF equ word ptr 6[bp] ; These equates are for the DPH's xlt equ word ptr 0 ; tranalation table offset in dph dpb equ word ptr 8 ; disk parameter block offset in dph mf equ byte ptr 5 ; disk specific media flag ; These equates are for the DPB's spt equ 0 ; sectors per track offset in dpb psh equ 15 ; physical shift factor offset in dpb ; Retry equates RW_RECAL_COUNT EQU 5 ; Max number of recals RETRY_COUNT EQU 10 ; Max number retries ; Path tracer equates PATH_ENTRY EQU word ptr 0 ; Path counter when routine entered PATH_EXIT EQU word ptr 2 ; Path counter when routine exited LAST_RETRY EQU word ptr 4 ; Retry counter at last exit LAST_RETURN EQU word ptr 6 ; Last returned value USE EQU word ptr 8 ; number of time routine called RETRY_SUM EQU word ptr 10 ; sum of all retry attempts RETRY1_SUM EQU word ptr 12 ; sum of all retry attempts RECAL_SUM EQU word ptr 14 ; sum of all retry attempts PATH_RETRY_HIST EQU 16 ; length of above data structure