Displaying 1 result from an estimated 1 matches for "vmware_clear_loop".
2011 Feb 18
1
[PATCH] core: Allow pasting from a VMware host by typing Ctrl-P
...heck there's space
+ jnb short vmware_no_enter
+ stosb ; Save it
+ call writechr ; Echo to screen
+vmware_no_enter:
+ shr eax,8
+ dec ebx
+ je vmware_done
+ dec cx
+ jne vmware_paste_char
+ jmp vmware_get_data
+
+vmware_clear_buffer:
+ sub ebx,ecx
+ jle vmware_done
+ shr ebx,2
+vmware_clear_loop:
+ mov eax,VMwareMagic
+ mov cx,00007h ; Get clipboard data
+ mov dx,VMwarePort
+ in eax,dx
+ dec ebx
+ jne vmware_clear_loop
+
+vmware_done:
+ ret
+
;
; This is it! We have a name (and location on the disk)... let's load
; that sucker!! First we have to decide what kind of file t...