Subversion Repositories Kolibri OS

Rev

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

Rev 431 Rev 437
Line 1... Line 1...
1
$Revision: 431 $
1
$Revision: 437 $
2
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
2
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
3
;;                                                              ;;
3
;;                                                              ;;
4
;; Copyright (C) KolibriOS team 2004-2007. All rights reserved. ;;
4
;; Copyright (C) KolibriOS team 2004-2007. All rights reserved. ;;
5
;; Copyright (C) MenuetOS 2000-2004 Ville Mikael Turjanmaa      ;;
5
;; Copyright (C) MenuetOS 2000-2004 Ville Mikael Turjanmaa      ;;
6
;; Distributed under terms of the GNU General Public License    ;;
6
;; Distributed under terms of the GNU General Public License    ;;
Line 158... Line 158...
158
    cmp    al, 0
158
    cmp    al, 0
159
    jnz    @b
159
    jnz    @b
160
    popa
160
    popa
161
    ret
161
    ret
Line 162... Line -...
162
 
-
 
163
uint2str_16:
-
 
164
	cmp	ax,cx
-
 
165
	jb	@f
-
 
166
	xor	dx,dx
-
 
167
	div	cx
-
 
168
	push	dx
-
 
169
	call	uint2str_16
-
 
170
	pop	ax
-
 
171
    @@: cmp	al,10
-
 
172
	sbb	al,$69
-
 
173
	das
-
 
174
	stosb
-
 
175
	ret
-
 
176
 
162
 
177
; Now int 16 is used for keyboard support.
163
; Now int 16 is used for keyboard support.
178
; This is shorter, simpler and more reliable.
164
; This is shorter, simpler and more reliable.
179
if 0
165
if 0
180
getkey:      push  ecx
166
getkey:      push  ecx
Line 574... Line 560...
574
    mov    [apm_data_16 - 0x10000 + 2], dx
560
    mov    [apm_data_16 - 0x10000 + 2], dx
575
    shr    edx, 16
561
    shr    edx, 16
576
    mov    [apm_data_16 - 0x10000 + 4], dl
562
    mov    [apm_data_16 - 0x10000 + 4], dl
577
    mov    [es : 0x9040], ebx              ; offset of APM entry point
563
    mov    [es : 0x9040], ebx              ; offset of APM entry point
578
apm_end:
564
apm_end:
579
; -----------------------------------------
-
 
580
 
-
 
581
; --------------- REVISION ----------------
-
 
582
	push	ds
-
 
583
	pop	es
-
 
584
	mov	di,svn_num_buf - 0x10000
-
 
585
	mov	ax,__REV__
-
 
586
	mov	cx,10
-
 
587
	call	uint2str_16
-
 
588
	mov	ax,' '
-
 
589
	stosw
-
 
590
	sub	di,svn_num_buf - 0x10000
-
 
591
	mov	dx,80 - 1 - msg_svn.len
-
 
592
	sub	dx,di
-
 
593
	call	setcursor
-
 
594
	mov	si,msg_svn - 0x10000
-
 
595
	call    printplain
-
 
596
	mov	si,svn_num_buf - 0x10000
-
 
597
	call    printplain
-
 
598
	_setcursor d80x25_top_num,0
565
        _setcursor d80x25_top_num, 0
599
; -----------------------------------------
566
; -----------------------------------------
Line 600... Line 567...
600
 
567