Changeset 48195 in vbox for trunk/src/VBox/Devices
- Timestamp:
- Aug 30, 2013 2:49:51 PM (11 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Devices/PC/BIOS/orgs.asm
r47006 r48195 1718 1718 push eax 1719 1719 push ds 1720 xor ax, ax 1720 push dx 1721 mov ax, 40h 1721 1722 mov ds, ax 1722 1723 1723 ;; time to turn off floppy drive motor(s)? 1724 mov al, ds:[440h] 1725 or al, al 1726 jz int08_floppy_off 1727 dec al 1728 mov ds:[440h], al 1729 jnz int08_floppy_off 1730 ;; turn motor(s) off 1731 push dx 1732 mov dx, 03F2h 1733 in al, dx 1734 and al, 0CFh 1735 out dx, al 1736 pop dx 1737 1738 int08_floppy_off: 1739 mov eax, ds:[46Ch] ; get ticks dword 1724 mov eax, ds:[6Ch] ; get ticks dword 1740 1725 inc eax 1741 1726 … … 1745 1730 ;; there has been a midnight rollover 1746 1731 xor eax, eax 1747 inc byte ptr ds:[ 470h] ; increment rollover flag1732 inc byte ptr ds:[70h] ; increment rollover flag 1748 1733 1749 1734 int08_store_ticks: 1750 mov ds:[46Ch], eax 1735 mov ds:[6Ch], eax 1736 1737 ;; time to turn off floppy drive motor(s)? 1738 mov al, ds:[40h] 1739 or al, al 1740 jz int08_floppy_off 1741 dec al 1742 mov ds:[40h], al 1743 jnz int08_floppy_off 1744 ;; turn motor(s) off 1745 mov dx, 03F2h 1746 in al, dx 1747 and al, 0CFh 1748 out dx, al 1749 int08_floppy_off: 1750 1751 1751 int 1Ch ; call the user timer handler 1752 1752 1753 cli 1753 1754 call eoi_master_pic 1755 pop dx 1754 1756 pop ds 1755 1757 pop eax
Note:
See TracChangeset
for help on using the changeset viewer.