Subversion Repositories Kolibri OS

Rev

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

Rev 3534 Rev 3606
Line 3... Line 3...
3
;; Copyright (C) KolibriOS team 2004-2012. All rights reserved. ;;
3
;; Copyright (C) KolibriOS team 2004-2012. 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: 3534 $
8
$Revision: 3606 $
9
 
9
 
10
 
10
 
Line 492... Line 492...
492
        mov     eax, 0
492
        mov     eax, 0
493
        jmp     @@M2
493
        jmp     @@M2
494
;--------------------------------------
494
;--------------------------------------
495
align 4
495
align 4
496
@@M1:
496
@@M1:
497
        cmp     ax, [Screen_Max_X];ScreenLength
497
        cmp     ax, word [Screen_Max_X];ScreenLength
498
        jl      @@M2
498
        jl      @@M2
499
        mov     ax, [Screen_Max_X];ScreenLength-1
499
        mov     ax, word [Screen_Max_X];ScreenLength-1
500
;--------------------------------------
500
;--------------------------------------
501
align 4
501
align 4
502
@@M2:
502
@@M2:
503
        mov     [MOUSE_X], ax;[XCoordinate]
503
        mov     [MOUSE_X], ax;[XCoordinate]
Line 512... Line 512...
512
        mov     ax, 0
512
        mov     ax, 0
513
        jmp     @@M4
513
        jmp     @@M4
514
;--------------------------------------
514
;--------------------------------------
515
align 4
515
align 4
516
@@M3:
516
@@M3:
517
        cmp     ax, [Screen_Max_Y];ScreenHeigth
517
        cmp     ax, word [Screen_Max_Y];ScreenHeigth
518
        jl      @@M4
518
        jl      @@M4
519
        mov     ax, [Screen_Max_Y];ScreenHeigth-1
519
        mov     ax, word [Screen_Max_Y];ScreenHeigth-1
520
;--------------------------------------
520
;--------------------------------------
521
align 4
521
align 4
522
@@M4:
522
@@M4:
523
        mov     [MOUSE_Y], ax;[YCoordinate]
523
        mov     [MOUSE_Y], ax;[YCoordinate]