1755,14 → 1755,14 |
; eax=6 delete cursor ; reserved |
; eax=7 get mouse_z |
|
cmp ebx, 7 |
cmp eax, 7 |
ja msset |
jmp [mousefn+ebx*4] |
jmp [mousefn+eax*4] |
msscreen: |
mov eax,[MOUSE_X] |
shl eax,16 |
mov ax,[MOUSE_Y] |
mov [esp+36-4],eax |
mov [esp+36],eax |
ret |
mswin: |
mov eax,[MOUSE_X] |
1780,11 → 1780,11 |
rol eax,16 |
sub ax,word[edi+SLOT_BASE+APPDATA.wnd_clientbox.left] |
rol eax,16 |
mov [esp+36-4],eax |
mov [esp+36],eax |
ret |
msbutton: |
movzx eax,byte [BTN_DOWN] |
mov [esp+36-4],eax |
mov [esp+36],eax |
ret |
msz: |
mov edi, [TASK_COUNT] |
1794,12 → 1794,12 |
mov ax,[MOUSE_SCROLL_H] |
shl eax,16 |
mov ax,[MOUSE_SCROLL_V] |
mov [esp+36-4],eax |
mov [esp+36],eax |
and [MOUSE_SCROLL_H],word 0 |
and [MOUSE_SCROLL_V],word 0 |
ret |
@@: |
and [esp+36-4],dword 0 |
and [esp+36],dword 0 |
; ret |
msset: |
ret |
1806,20 → 1806,20 |
|
app_load_cursor: |
; add ebx, new_app_base |
cmp ecx, OS_BASE |
cmp ebx, OS_BASE |
jae msset |
stdcall load_cursor, ecx, edx |
mov [esp+36-4], eax |
stdcall load_cursor, ebx, ecx |
mov [esp+36], eax |
ret |
|
app_set_cursor: |
stdcall set_cursor, ecx |
mov [esp+36-4], eax |
stdcall set_cursor, ebx |
mov [esp+36], eax |
ret |
|
app_delete_cursor: |
stdcall delete_cursor, ecx |
mov [esp+36-4], eax |
stdcall delete_cursor, ebx |
mov [esp+36], eax |
ret |
|
is_input: |
5167,39 → 5167,37 |
|
syscall_cdaudio: ; CD |
|
cmp ebx, 4 |
cmp eax, 4 |
jb .audio |
jz .eject |
cmp ebx, 5 |
cmp eax, 5 |
jnz .ret |
.load: |
call .reserve |
call LoadMedium |
;call .free |
jmp .free |
; ret |
call .free |
ret |
.eject: |
call .reserve |
call clear_CD_cache |
call allow_medium_removal |
call EjectMedium |
; call .free |
jmp .free |
; ret |
call .free |
ret |
.audio: |
call sys_cd_audio |
mov [esp+36-4],eax |
mov [esp+36],eax |
.ret: |
ret |
|
.reserve: |
call reserve_cd |
mov eax, ecx |
mov eax, ebx |
shr eax, 1 |
and eax, 1 |
inc eax |
mov [ChannelNumber], ax |
mov eax, ecx |
mov eax, ebx |
and eax, 1 |
mov [DiskNumber], al |
call reserve_cd_channel |
5212,7 → 5210,7 |
mov al, [DRIVE_DATA+1] |
shr al, cl |
test al, 2 |
jz .free;.err |
jz .err |
ret |
.free: |
call free_cd_channel |
5220,7 → 5218,7 |
ret |
.err: |
call .free |
; pop eax |
pop eax |
ret |
|
align 4 |