Subversion Repositories Kolibri OS

Rev

Rev 5786 | Rev 7121 | Go to most recent revision | Show entire file | Regard whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 5786 Rev 5790
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: 5786 $
14
$Revision: 5790 $
15
 
15
 
16
 
16
 
Line 174... Line 174...
174
        pop     ds
174
        pop     ds
175
        mov     [bootdevice], ax
175
        mov     [bootdevice], ax
176
        mov     [bootfs], bx
176
        mov     [bootfs], bx
Line 177... Line 177...
177
 
177
 
178
; set up stack
178
; set up stack
179
        mov     ax, TMP_STACK_TOP shr 16
179
        mov     ax, (TMP_STACK_TOP and 0xF0000) shr 4
180
        mov     ss, ax
180
        mov     ss, ax
Line 181... Line 181...
181
        mov     sp, TMP_STACK_TOP and 0xFFFF
181
        mov     sp, TMP_STACK_TOP and 0xFFFF
182
 
182
 
Line 291... Line 291...
291
        jnz     no_hd_load
291
        jnz     no_hd_load
292
        mov     word [cs:bx_from_load], bx              ; {SPraid}[13.03.2007]
292
        mov     word [cs:bx_from_load], bx              ; {SPraid}[13.03.2007]
293
no_hd_load:
293
no_hd_load:
Line 294... Line 294...
294
 
294
 
295
; set up stack
295
; set up stack
296
        mov     ax, TMP_STACK_TOP shr 16
296
        mov     ax, (TMP_STACK_TOP and 0xF0000) shr 4
297
        mov     ss, ax
297
        mov     ss, ax
298
        mov     sp, TMP_STACK_TOP and 0xFFFF
298
        mov     sp, TMP_STACK_TOP and 0xFFFF
299
; set up segment registers
299
; set up segment registers
300
        push    cs
300
        push    cs