583,6 → 583,7 |
mov esi,boot_devices |
call boot_log |
call detect_devices |
stdcall load_driver, szPS2MDriver |
|
; TIMER SET TO 1/100 S |
|
1767,6 → 1768,10 |
mov [esp+36],dword 1 |
ret |
|
get_timer_ticks: |
mov eax,[timer_ticks] |
ret |
|
iglobal |
align 4 |
mousefn dd msscreen, mswin, msbutton, msset |
1773,6 → 1778,7 |
dd app_load_cursor |
dd app_set_cursor |
dd app_delete_cursor |
dd msz |
endg |
|
readmousepos: |
1784,8 → 1790,9 |
; eax=4 load cursor |
; eax=5 set cursor |
; eax=6 delete cursor ; reserved |
; eax=7 get mouse_z |
|
cmp eax, 6 |
cmp eax, 7 |
ja msset |
jmp [mousefn+eax*4] |
msscreen: |
1816,6 → 1823,21 |
movzx eax,byte [BTN_DOWN] |
mov [esp+36],eax |
ret |
msz: |
mov edi, [TASK_COUNT] |
movzx edi, word [WIN_POS + edi*2] |
cmp edi, [CURRENT_TASK] |
jne @f |
mov ax,[MOUSE_SCROLL_H] |
shl eax,16 |
mov ax,[MOUSE_SCROLL_V] |
mov [esp+36],eax |
mov [MOUSE_SCROLL_H],word 0 |
mov [MOUSE_SCROLL_V],word 0 |
ret |
@@: |
mov [esp+36],dword 0 |
ret |
msset: |
ret |
|
1939,7 → 1961,7 |
detect_devices: |
;!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! |
include 'detect/commouse.inc' |
include 'detect/ps2mouse.inc' |
;include 'detect/ps2mouse.inc' |
;include 'detect/dev_fd.inc' |
;include 'detect/dev_hdcd.inc' |
;include 'detect/sear_par.inc' |
2348,7 → 2370,6 |
and edx,0xFF000000 ;255*256*256*256 |
and ecx,0x00FFFFFF ;255*256*256+255*256+255 |
add edx,ecx |
|
; mov [ebx+IMG_BACKGROUND],edx |
push eax |
mov eax,[img_background] |
2395,8 → 2416,10 |
.fin: |
ret |
nosb5: |
|
ret |
|
|
align 4 |
|
sys_getbackground: |
3298,24 → 3321,12 |
wrmsr_instr: |
;now counter in ecx |
;(edx:eax) esi:edi => edx:esi |
; Fast Call MSR can't be destroy |
; Íî MSR_AMD_EFER ìîæíî èçìåíÿòü, ò.ê. â ýòîì ðåãèñòðå ëèø |
; âêëþ÷àþòñÿ/âûêëþ÷àþòñÿ ðàñøèðåííûå âîçìîæíîñòè |
cmp ecx, MSR_SYSENTER_CS |
je @f |
cmp ecx, MSR_SYSENTER_ESP |
je @f |
cmp ecx, MSR_SYSENTER_EIP |
je @f |
cmp ecx, MSR_AMD_STAR |
je @f |
|
mov eax, esi |
wrmsr |
@@: |
mov [esp+36],eax |
mov [esp+24],edx ;ret in ebx? |
ret |
|
|
cache_disable: |
mov eax,cr0 |
or eax,01100000000000000000000000000000b |