Displaying 1 result from an estimated 1 matches for "vmware_paste_char".
2011 Feb 18
1
[PATCH] core: Allow pasting from a VMware host by typing Ctrl-P
...gic
+ mov cx,0006h ; Get clipboard length
+ mov dx,VMwarePort
+ in eax,dx
+ and eax,eax
+ jz vmware_done
+ cmp eax,0ffffffffh
+ jz vmware_done
+ mov ebx,eax
+
+vmware_get_data:
+ mov eax,VMwareMagic
+ mov cx,00007h ; Get clipboard data
+ mov dx,VMwarePort
+ in eax,dx
+ mov ecx,4
+
+vmware_paste_char:
+ and al,al
+ je vmware_clear_buffer
+ cmp al,7Fh ; <DEL> == <BS>
+ je vmware_no_enter
+ cmp al,' ' ; ASCII?
+ jb vmware_no_enter ; don't paste no non-ASCII
+ ja vmware_enter
+ cmp di,command_line ; Space must not be first
+ je short vmware_no_enter
+vmware_e...