Changeset 536 in xtideuniversalbios for trunk/XTIDE_Universal_BIOS/Src/Device/IDE/JrIdeTransfer.asm
- Timestamp:
- Apr 10, 2013, 6:27:15 PM (12 years ago)
- google:author:
- krille_n_@hotmail.com
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/XTIDE_Universal_BIOS/Src/Device/IDE/JrIdeTransfer.asm
r526 r536 27 27 .bSectorsDone resb 1 ; 8, Number of sectors xferred 28 28 endstruc 29 30 SECTOR_ACCESS_WINDOW_SIZE EQU 512 ; 512 bytes31 29 32 30 … … 68 66 mov dx, [di+DPT.wBasePort] 69 67 cmp BYTE [di+DPT_ATA.bDevice], DEVICE_8BIT_JRIDE_ISA 70 jne SHORT .GetSectorAccessWindowForXTCF 71 72 ; Get Sector Access Window for JR-IDE/ISA 68 jb SHORT .GetSectorAccessWindowForXTCF 69 70 ; Get Sector Access Window for JR-IDE/ISA and ADP50L 71 mov ds, dx ; Segment for JR-IDE/ISA and ADP50L 73 72 mov di, JRIDE_SECTOR_ACCESS_WINDOW_OFFSET 74 mov ds, dx ; Segment for JR-IDE/ISA 73 je SHORT .SectorAccessWindowLoadedToDSDI 74 mov di, ADP50L_SECTOR_ACCESS_WINDOW_OFFSET 75 75 jmp SHORT .SectorAccessWindowLoadedToDSDI 76 76 … … 231 231 mov bx, di 232 232 mov dx, cx 233 xor c l, cl233 xor cx, cx 234 234 ALIGN JUMP_ALIGN 235 235 .WriteNextSector: 236 mov ch, SECTOR_ACCESS_WINDOW_SIZE >> 9236 inc ch 237 237 rep movsw 238 238 mov di, bx ; Reset for next sector … … 258 258 mov bx, si 259 259 mov dx, cx 260 xor c l, cl260 xor cx, cx 261 261 ALIGN JUMP_ALIGN 262 262 .ReadNextSector: 263 mov ch, SECTOR_ACCESS_WINDOW_SIZE >> 9263 inc ch 264 264 rep movsw 265 265 mov si, bx ; Reset for next sector … … 289 289 ret 290 290 291 292 %ifndef CHECK_FOR_UNUSED_ENTRYPOINTS293 %if SECTOR_ACCESS_WINDOW_SIZE <> 512294 %error "SECTOR_ACCESS_WINDOW_SIZE is no longer equal to 512. JrIdeTransfer.asm needs changes."295 %endif296 %endif
Note:
See TracChangeset
for help on using the changeset viewer.