2006-09-07 16:14:53 +02:00
|
|
|
format ELF
|
2007-08-24 21:49:07 +02:00
|
|
|
|
|
|
|
include "proc32.inc"
|
|
|
|
|
2006-09-07 16:14:53 +02:00
|
|
|
section '.text' executable
|
2007-08-24 21:49:07 +02:00
|
|
|
|
|
|
|
public _msys_get_key
|
|
|
|
public _msys_set_keyboard_mode
|
|
|
|
|
|
|
|
align 4
|
|
|
|
proc _msys_get_key stdcall
|
|
|
|
|
2006-09-07 16:14:53 +02:00
|
|
|
mov eax,2
|
|
|
|
int 0x40
|
|
|
|
ret
|
2007-08-24 21:49:07 +02:00
|
|
|
|
|
|
|
endp
|
|
|
|
|
|
|
|
align 4
|
|
|
|
proc _msys_set_keyboard_mode stdcall, mode:dword
|
|
|
|
|
2006-09-07 16:14:53 +02:00
|
|
|
mov edx,ebx
|
|
|
|
mov eax,66
|
|
|
|
xor ebx,ebx
|
|
|
|
inc ebx
|
2007-08-24 21:49:07 +02:00
|
|
|
mov ecx,[mode]
|
2006-09-07 16:14:53 +02:00
|
|
|
mov ebx,edx
|
2007-08-24 21:49:07 +02:00
|
|
|
ret
|
|
|
|
endp
|