Subversion Repositories Kolibri OS

Rev

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

Rev 9265 Rev 9279
Line 3... Line 3...
3
;; Copyright (C) KolibriOS team 2013-2015. All rights reserved. ;;
3
;; Copyright (C) KolibriOS team 2013-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: 9265 $
8
$Revision: 9279 $
9
 
9
 
10
 
10
 
Line 77... Line 77...
77
        mov     edi, eax
77
        mov     edi, eax
78
        mov     eax, [clipboard_slots]
78
        mov     eax, [clipboard_slots]
79
        shl     eax, 2
79
        shl     eax, 2
80
        add     eax, [clipboard_main_list]
80
        add     eax, [clipboard_main_list]
81
        mov     [eax], edi
81
        mov     [eax], edi
82
        push    edi       ;save pointer to data
-
 
83
        push    ecx       ;save size data
-
 
84
; copy the data into the slot
82
; copy the data into the slot
85
        mov     esi, edx
83
        mov     esi, edx
86
        mov     eax, ecx
84
        mov     eax, ecx
87
        cld
85
        cld
88
        stosd  ; store size of slot
86
        stosd  ; store size of slot
89
        sub     ecx, 4
87
        sub     ecx, 4
90
        add     esi, 4
88
        add     esi, 4
91
        rep movsb ; store slot data
89
        rep movsb ; store slot data
92
;copy ecx in Dword[clipboard_main_list+clipboard_slots*4]
-
 
93
        pop     ecx
-
 
94
        pop     eax
-
 
95
        mov     [eax], ecx
-
 
96
; increase the counter of slots
90
; increase the counter of slots
97
        inc     [clipboard_slots]
91
        inc     [clipboard_slots]
98
; unlock last slot
92
; unlock last slot
99
        xor     eax, eax
93
        xor     eax, eax
100
        mov     [ebx], eax
94
        mov     [ebx], eax