Rev 7132 | Rev 8089 | Go to most recent revision | Show entire file | Regard whitespace | Details | Blame | Last modification | View Log | RSS feed
Rev 7132 | Rev 7586 | ||
---|---|---|---|
Line 9... | Line 9... | ||
9 | ;; KolibriOS 16-bit loader, ;; |
9 | ;; KolibriOS 16-bit loader, ;; |
10 | ;; based on bootcode for MenuetOS ;; |
10 | ;; based on bootcode for MenuetOS ;; |
11 | ;; ;; |
11 | ;; ;; |
12 | ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; |
12 | ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; |
Line 13... | Line 13... | ||
13 | 13 | ||
Line 14... | Line 14... | ||
14 | $Revision: 7132 $ |
14 | $Revision: 7586 $ |
15 | 15 | ||
16 | 16 | ||
Line 828... | Line 828... | ||
828 | call .gettime |
828 | call .gettime |
829 | sub eax, [.starttime] |
829 | sub eax, [.starttime] |
830 | if defined extended_primary_loader |
830 | if defined extended_primary_loader |
831 | sub ax, [preboot_timeout] |
831 | sub ax, [preboot_timeout] |
832 | else |
832 | else |
- | 833 | ; bios 0x1A timer runs at ~18 ticks per second |
|
833 | sub ax, 18*5 |
834 | sub ax, 18*PREBOOT_TIMEOUT |
834 | end if |
835 | end if |
835 | jae .timergo |
836 | jae .timergo |
836 | neg ax |
837 | neg ax |
837 | add ax, 18-1 |
838 | add ax, 18-1 |
838 | mov bx, 18 |
839 | mov bx, 18 |