Subversion Repositories Kolibri OS

Rev

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

Rev 7121 Rev 8091
Line 3... Line 3...
3
;; Copyright (C) KolibriOS team 2011-2015. All rights reserved. ;;
3
;; Copyright (C) KolibriOS team 2011-2015. All rights reserved. ;;
4
;; Distributed under terms of the GNU General Public License    ;;
4
;; Distributed under terms of the GNU General Public License    ;;
5
;;                                                              ;;
5
;;                                                              ;;
6
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
6
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
Line 7... Line 7...
7
 
7
 
Line 8... Line 8...
8
$Revision: 7121 $
8
$Revision: 8091 $
9
 
9
 
Line 10... Line 10...
10
; All parsers are called with ds:si -> value of the variable,
10
; All parsers are called with ds:si -> value of the variable,
Line 72... Line 72...
72
; boot device (1-floppy 2-kolibri.img using primary loader)
72
; boot device (1-floppy 2-kolibri.img using primary loader)
73
        call    parse_number
73
        call    parse_number
74
        jc      .nothing
74
        jc      .nothing
75
        cmp     al, 1
75
        cmp     al, 1
76
        jb      .nothing
76
        jb      .nothing
77
        cmp     al, 2
77
        cmp     al, 3
78
        ja      .nothing
78
        ja      .nothing
79
        mov     [es:preboot_device], al
79
        mov     [es:preboot_device], al
80
.nothing:
80
.nothing:
81
        ret
81
        ret
Line -... Line 82...
-
 
82
 
-
 
83
parse_syspath:
-
 
84
; everything except spaces
-
 
85
        mov     bx, preboot_syspath
-
 
86
.next_char:
-
 
87
        call    parse_char
-
 
88
        jc      .done
-
 
89
        mov     [es:bx], al
-
 
90
        inc     bx
-
 
91
        jmp     .next_char
-
 
92
.done:
-
 
93
        mov     byte[es:bx], 0          ; terminator
-
 
94
        ret
82
 
95
 
83
parse_char:
96
parse_char:
84
; skip spaces and return the next character or CF if EOF.
97
; skip spaces and return the next character or CF if EOF.
85
        cmp     si, dx
98
        cmp     si, dx
86
        jae     .eof
99
        jae     .eof