Changeset 332 in xtideuniversalbios for trunk/XTIDE_Universal_BIOS/Src/Device
- Timestamp:
- Mar 12, 2012, 1:33:24 PM (13 years ago)
- google:author:
- krille_n_@hotmail.com
- Location:
- trunk/XTIDE_Universal_BIOS/Src/Device/IDE
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/XTIDE_Universal_BIOS/Src/Device/IDE/IdeError.asm
r324 r332 23 23 24 24 %ifndef ASSEMBLE_SHARED_IDE_DEVICE_FUNCTIONS ; JR-IDE/ISA 25 jmp ContinueFromMemIdeError ; What's this supposed to do? *FIXME*25 jmp ContinueFromMemIdeError 26 26 %else 27 27 ContinueFromMemIdeError: -
trunk/XTIDE_Universal_BIOS/Src/Device/IDE/IdeIO.asm
r181 r332 6 6 7 7 ;-------------------------------------------------------------------- 8 ; IdeIO_OutputALtoIdeControlBlockRegisterInDL 8 9 ; IdeIO_OutputALtoIdeRegisterInDL 9 ; IdeIO_OutputALtoIdeControlBlockRegisterInDL10 10 ; Parameters: 11 11 ; AL: Byte to output 12 ; DL: IDE Register (IdeIO_OutputALtoIdeRegisterInDL)13 ; IDE Control Block Register (IdeIO_OutputALtoIdeControlBlockRegisterInDL)12 ; DL: IDE Control Block Register (IdeIO_OutputALtoIdeControlBlockRegisterInDL) 13 ; IDE Register (IdeIO_OutputALtoIdeRegisterInDL) 14 14 ; DS:DI: Ptr to DPT (in RAMVARS segment) 15 15 ; Returns: … … 19 19 ;-------------------------------------------------------------------- 20 20 ALIGN JUMP_ALIGN 21 IdeIO_OutputALtoIdeControlBlockRegisterInDL: 22 mov bl, IDEVARS.wPortCtrl 23 SKIP2B f ; cmp ax, <next instruction> 24 ; Fall to IdeIO_OutputALtoIdeRegisterInDL 25 21 26 IdeIO_OutputALtoIdeRegisterInDL: 22 27 mov bl, IDEVARS.wPort 23 SKIP2B f ; cmp ax, <next instruction>24 ; Fall to IdeIO_OutputALtoIdeControlBlockRegisterInDL25 26 IdeIO_OutputALtoIdeControlBlockRegisterInDL:27 mov bl, IDEVARS.wPortCtrl28 28 call GetPortToDXandTranslateA0andA3ifNecessary 29 29 out dx, al … … 63 63 GetPortToDXandTranslateA0andA3ifNecessary: 64 64 xor bh, bh 65 add bl, [di+DPT.bIdevarsOffset] ; CS:BX now points port address 65 66 xor dh, dh ; DX now has IDE register offset 66 add bl, [di+DPT.bIdevarsOffset] ; CS:BX now points port address67 67 add dx, [cs:bx] 68 68 test BYTE [di+DPT.bFlagsHigh], FLGH_DPT_REVERSED_A0_AND_A3
Note:
See TracChangeset
for help on using the changeset viewer.