Changeset 207 in xtideuniversalbios
- Timestamp:
- Jan 7, 2012, 7:57:57 PM (13 years ago)
- google:author:
- gregli@hotmail.com
- Location:
- trunk
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/Assembly_Library/Src/Util/Registers.asm
r149 r207 69 69 ; Corrupts registers: 70 70 ; AX, CX 71 ; 72 ; Inline of NORMALIZE_FAR_POINTER so that we can share the last 2/3 of the 73 ; routine with Registers_NormalizeFinish. 74 ; 71 75 ;-------------------------------------------------------------------- 72 76 ALIGN JUMP_ALIGN 73 77 Registers_NormalizeESSI: 74 NORMALIZE_FAR_POINTER es, si, ax, cx 75 ret 78 mov cx, si 79 and si, byte 0fh 80 jmp Registers_NormalizeFinish 76 81 77 82 ALIGN JUMP_ALIGN 78 83 Registers_NormalizeESDI: 79 NORMALIZE_FAR_POINTER es, di, ax, cx 84 mov cx, di 85 and di, byte 0fh 86 ;;; fall-through 87 88 ALIGN JUMP_ALIGN 89 Registers_NormalizeFinish: 90 eSHR_IM cx, 4 91 mov ax, es 92 add ax, cx 93 mov es, ax 80 94 ret 81 95 82 96 83 97 ;-------------------------------------------------------------------- -
trunk/XTIDE_Universal_BIOS/Src/Device/Serial/SerialCommand.asm
r203 r207 177 177 dec dx 178 178 179 ; 180 ; Start off with a normalized buffer pointer 181 ; 182 call Registers_NormalizeESDI 183 179 184 ;---------------------------------------------------------------------- 180 185 ; … … 183 188 ; Sends first six bytes of IDEREGS_AND_INTPACK as the command 184 189 ; 185 call Registers_NormalizeESDI186 187 190 push es ; save off real buffer location 188 191 push di … … 323 326 jnz SerialCommand_OutputWithParameters_Error 324 327 328 ; 329 ; Normalize buffer pointer for next go round, if needed 330 ; 331 test di,di 332 jns .clearBuffer 333 call Registers_NormalizeESDI 325 334 326 335 ;---------------------------------------------------------------------- … … 332 341 ; taken care of this, but I have seen cases where this is not true. 333 342 ; 343 334 344 .clearBuffer: 335 345 mov dl,bh … … 344 354 345 355 .clearBufferComplete: 356 346 357 pop ax ; sector count and command byte 347 358 dec al ; decrememnt sector count
Note:
See TracChangeset
for help on using the changeset viewer.