Changeset 251 in xtideuniversalbios
- Timestamp:
- Feb 17, 2012, 11:19:10 PM (13 years ago)
- google:author:
- krille_n_@hotmail.com
- Location:
- trunk
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/Assembly_Library/Src/Util/Reboot.asm
r247 r251 13 13 ;-------------------------------------------------------------------- 14 14 Reboot_ComputerWithBootFlagInAX: 15 LOAD_BDA_SEGMENT_TO d x, bx15 LOAD_BDA_SEGMENT_TO ds, bx 16 16 mov [BDA.wBoot], ax ; Store boot flag 17 17 ; Fall to Reboot_AT … … 29 29 out 64h, al ; Reset computer (AT+) 30 30 %ifndef EXCLUDE_FROM_XTIDE_UNIVERSAL_BIOS 31 mov a l, 1031 mov ax, 10 32 32 call Delay_MicrosecondsFromAX 33 33 %else … … 51 51 mov es, ax 52 52 mov ss, ax 53 jmp WORD 0FFFFh:0h; XT reset53 jmp 0FFFFh:0 ; XT reset -
trunk/XTIDE_Universal_BIOS/Src/Device/IDE/IdeTransfer.asm
r242 r251 234 234 SingleByteRead: 235 235 %ifdef USE_186 ; INS instruction available 236 dec cx ; Avoid overflowing CX on a 128 sector transfer237 236 shl cx, 1 ; WORD count to BYTE count 238 inc cx 237 dec cx ; Fix for CX overflowing on a 128 sector transfer 238 insb 239 239 rep insb 240 insb241 240 %else ; If 8088/8086 242 241 shr cx, 1 ; WORD count to DWORD count … … 329 328 SingleByteWrite: 330 329 %ifdef USE_186 ; OUTS instruction available 331 dec cx ; Avoid overflowing CX on a 128 sector transfer332 330 shl cx, 1 ; WORD count to BYTE count 333 inc cx 334 es ; Source is ES segment 335 rep outsb 336 es outsb 331 dec cx ; Fix for CX overflowing on a 128 sector transfer 332 es outsb ; Source is ES segment 333 rep es outsb 337 334 %else ; If 8088/8086 338 335 shr cx, 1 ; WORD count to DWORD count
Note:
See TracChangeset
for help on using the changeset viewer.