Subversion Repositories Kolibri OS

Rev

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

Rev 425 Rev 426
Line 1... Line 1...
1
$Revision: 425 $
1
$Revision: 426 $
2
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
2
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
3
;;                                                        ;;
3
;;                                                        ;;
4
;;  BOOTCODE.INC                                          ;;
4
;;  BOOTCODE.INC                                          ;;
5
;;                                                        ;;
5
;;                                                        ;;
6
;;  KolibriOS 16-bit loader,                              ;;
6
;;  KolibriOS 16-bit loader,                              ;;
Line 154... Line 154...
154
    cmp    al, 0
154
    cmp    al, 0
155
    jnz    @b
155
    jnz    @b
156
    popa
156
    popa
157
    ret
157
    ret
Line -... Line 158...
-
 
158
 
-
 
159
uint2str_16:
-
 
160
	cmp	ax,cx
-
 
161
	jb	@f
-
 
162
	xor	dx,dx
-
 
163
	div	cx
-
 
164
	push	dx
-
 
165
	call	uint2str_16
-
 
166
	pop	ax
-
 
167
    @@: cmp	al,10
-
 
168
	sbb	al,$69
-
 
169
	das
-
 
170
	stosb
-
 
171
	ret
158
 
172
 
159
; Now int 16 is used for keyboard support.
173
; Now int 16 is used for keyboard support.
160
; This is shorter, simpler and more reliable.
174
; This is shorter, simpler and more reliable.
161
if 0
175
if 0
162
getkey:      push  ecx
176
getkey:      push  ecx
Line 530... Line 544...
530
    mov    si, msg_apm - 0x10000
544
    mov    si, msg_apm - 0x10000
531
    mov    [si + 5], ah
545
    mov    [si + 5], ah
532
    mov    [si + 7], al
546
    mov    [si + 7], al
533
    _setcursor 0, 3
547
    _setcursor 0, 3
534
    call    printplain
548
    call    printplain
535
    _setcursor d80x25_top_num,0
-
 
536
    ; ------------------
549
    ; ------------------
Line 537... Line 550...
537
 
550
 
538
    mov    ax, 0x5304            ; Disconnect interface
551
    mov    ax, 0x5304            ; Disconnect interface
539
    xor    bx, bx
552
    xor    bx, bx
Line 559... Line 572...
559
    mov    [apm_data_16 - 0x10000 + 4], dl
572
    mov    [apm_data_16 - 0x10000 + 4], dl
560
    mov    [es : 0x9040], ebx              ; offset of APM entry point
573
    mov    [es : 0x9040], ebx              ; offset of APM entry point
561
apm_end:
574
apm_end:
562
; -----------------------------------------
575
; -----------------------------------------
Line -... Line 576...
-
 
576
 
-
 
577
; --------------- REVISION ----------------
-
 
578
	push	ds
-
 
579
	pop	es
-
 
580
	mov	di,svn_num_buf - 0x10000
-
 
581
	mov	ax,__REV__
-
 
582
	mov	cx,10
-
 
583
	call	uint2str_16
-
 
584
	mov	ax,' '
-
 
585
	stosw
-
 
586
	sub	di,svn_num_buf - 0x10000
-
 
587
	mov	dx,80 - 1 - msg_svn.len
-
 
588
	sub	dx,di
-
 
589
	call	setcursor
-
 
590
	mov	si,msg_svn - 0x10000
-
 
591
	call    printplain
-
 
592
	mov	si,svn_num_buf - 0x10000
-
 
593
	call    printplain
-
 
594
	_setcursor d80x25_top_num,0
-
 
595
; -----------------------------------------
563
 
596
 
Line 564... Line 597...
564
; DISPLAY VESA INFORMATION
597
; DISPLAY VESA INFORMATION
565
 
598
 
566
    push    0
599
    push    0
Line 1296... Line 1329...
1296
        out     dx,al      ; select GDC bit mask register
1329
        out     dx,al      ; select GDC bit mask register
1297
                           ; for writes to 0x03cf
1330
                           ; for writes to 0x03cf
1298
gmok2:
1331
gmok2:
1299
        push    ds
1332
        push    ds
1300
        pop    es
1333
        pop    es
-
 
1334