Rev 3194 | Details | Compare with Previous | Last modification | View Log | RSS feed
Rev | Author | Line No. | Line |
---|---|---|---|
431 | serge | 1 | ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; |
2 | ;; ;; |
||
2047 | art_zh | 3 | ;; Copyright (C) KolibriOS team 2004-2011. All rights reserved. ;; |
431 | serge | 4 | ;; Copyright (C) MenuetOS 2000-2004 Ville Mikael Turjanmaa ;; |
5 | ;; Distributed under terms of the GNU General Public License ;; |
||
6 | ;; ;; |
||
7 | ;; BOOTCODE.INC ;; |
||
8 | ;; ;; |
||
2047 | art_zh | 9 | ;; Kolibri-A auxiliary 16-bit code, ;; |
10 | ;; based on bootcode for KolibriOS ;; |
||
431 | serge | 11 | ;; ;; |
12 | ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; |
||
1 | ha | 13 | |
593 | mikedld | 14 | $Revision: 3519 $ |
1 | ha | 15 | |
3169 | art_zh | 16 | boot_dev db 0 ; 0=floppy, 1=hd |
1 | ha | 17 | |
18 | |||
19 | ;========================================================================= |
||
20 | ; |
||
21 | ; 16 BIT CODE |
||
22 | ; |
||
23 | ;========================================================================= |
||
24 | |||
3169 | art_zh | 25 | diff16 "start_of_code: ",0,$ |
1 | ha | 26 | |
27 | start_of_code: |
||
1683 | art_zh | 28 | cld |
1 | ha | 29 | |
29 | halyavin | 30 | ; set up stack |
1683 | art_zh | 31 | mov ax, 3000h |
32 | mov ss, ax |
||
33 | mov sp, 0EC00h |
||
29 | halyavin | 34 | ; set up segment registers |
1683 | art_zh | 35 | push cs |
36 | pop ds |
||
37 | push cs |
||
38 | pop es |
||
1 | ha | 39 | |
40 | |||
1703 | art_zh | 41 | cpugood: |
3194 | art_zh | 42 | xor ax, ax |
3176 | art_zh | 43 | push ax |
1683 | art_zh | 44 | popf |
45 | sti |
||
465 | serge | 46 | |
29 | halyavin | 47 | ; set up esp |
1683 | art_zh | 48 | movzx esp, sp |
1 | ha | 49 | |
3176 | art_zh | 50 | push ax |
1683 | art_zh | 51 | pop es |
160 | diamond | 52 | |
29 | halyavin | 53 | cfgmanager: |
713 | Lrz | 54 | |
55 | |||
3176 | art_zh | 56 | ; DMA ACCESS TO HD |
713 | Lrz | 57 | |
3194 | art_zh | 58 | ; mov al, 1 |
2014 | art_zh | 59 | |
1 | ha | 60 | ; GRAPHICS ACCELERATION |
346 | diamond | 61 | ; force yes |
3194 | art_zh | 62 | ; mov [es:0x901C], al |
1 | ha | 63 | |
64 | |||
65 | ; BOOT DEVICE |
||
66 | |||
3176 | art_zh | 67 | xor ax, ax |
1683 | art_zh | 68 | mov [boot_dev], al |
3194 | art_zh | 69 | ; mov es, ax |
1 | ha | 70 | |
71 | ; SET GRAPHICS |
||
72 | |||
3163 | art_zh | 73 | mov ax, 0xA000 ; AtomBIOS Fn00 |
74 | mov cx, 0x550A ; 1024x768, 32bpp, ARGB8888 |
||
412 | serge | 75 | setgr: |
1683 | art_zh | 76 | int 0x10 |
77 | test ah, ah |
||
1703 | art_zh | 78 | jnz $ |
3163 | art_zh | 79 | mov ax, 0xA006 ; AtomBIOS Fn06 |
80 | int 0x10 |
||
81 | mov [es:0x9018], ebx ; LFB |
||
82 | |||
412 | serge | 83 | gmok2: |
1683 | art_zh | 84 | push ds |
85 | pop es |