Subversion Repositories Kolibri OS

Rev

Rev 440 | Go to most recent revision | Show entire file | Regard whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 440 Rev 455
Line 52... Line 52...
52
;;
52
;;
53
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
53
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
Line 54... Line 54...
54
 
54
 
Line 55... Line 55...
55
include 'macros.inc'
55
include 'macros.inc'
Line 56... Line 56...
56
 
56
 
57
$Revision: 440 $
57
$Revision: 455 $
58
 
58
 
Line 655... Line 655...
655
 
655
 
656
        ; task list
656
        ; task list
657
        mov   [CURRENT_TASK],dword 1
657
        mov  [CURRENT_TASK],dword 1
658
        mov   [TASK_COUNT],dword 1
658
        mov  [TASK_COUNT],dword 1
-
 
659
        mov  [current_slot], SLOT_BASE+256
659
        mov [current_slot], SLOT_BASE+256
660
        mov  [TASK_BASE],dword TASK_DATA
660
        mov  [TASK_DATA+TASKDATA.wnd_number], 1 ; on screen number
661
        mov  [TASK_DATA+TASKDATA.wnd_number], 1 ; on screen number
661
        mov  [TASK_DATA+TASKDATA.pid], 1        ; process id number
662
        mov  [TASK_DATA+TASKDATA.pid], 1        ; process id number
Line 662... Line 663...
662
        mov  [TASK_DATA+TASKDATA.mem_start], 0  ; process base address
663
        mov  [TASK_DATA+TASKDATA.mem_start], 0  ; process base address
Line 3320... Line 3321...
3320
        setne cl
3321
        setne cl
Line 3321... Line 3322...
3321
 
3322
 
3322
        pop  edx eax
3323
        pop  edx eax
Line 3323... Line -...
3323
        ret
-
 
3324
 
-
 
3325
uglobal
-
 
3326
  mouse_active  db  0
3324
        ret
3327
endg
3325
 
3328
iglobal
3326
iglobal
Line 3329... Line 3327...
3329
  cpustring db '/RD/1/CPU',0
3327
  cpustring db '/RD/1/CPU',0
Line 3344... Line 3342...
3344
    lea   esi,[ebp+6]
3342
    lea   esi,[ebp+6]
3345
    xor   ebx,ebx               ; no parameters
3343
    xor   ebx,ebx               ; no parameters
3346
    xor   edx,edx               ; no flags
3344
    xor   edx,edx               ; no flags
3347
    call  fs_RamdiskExecute.flags
3345
    call  fs_RamdiskExecute.flags
3348
    mov   [ctrl_alt_del], 0
3346
    mov   [ctrl_alt_del], 0
-
 
3347
 
3349
  nocpustart:
3348
nocpustart:
3350
    cmp   [mouse_active], 1
3349
    cmp   [mouse_active], 1
3351
    jne   mouse_not_active
3350
    jne   mouse_not_active
3352
    mov   [mouse_active], 0
3351
    mov   [mouse_active], 0
3353
    xor   edi, edi
3352
    xor   edi, edi
3354
    mov   ecx, [TASK_COUNT]
3353
    mov   ecx,  [TASK_COUNT]
3355
   set_mouse_event:
3354
set_mouse_event:
3356
    add   edi, 256
3355
    add   edi, 256
3357
    or    [edi+SLOT_BASE+APPDATA.event_mask], dword 00100000b
3356
    or    [edi+SLOT_BASE+APPDATA.event_mask], dword 100000b
3358
    loop  set_mouse_event
3357
    loop  set_mouse_event
3359
  mouse_not_active:
-
 
3360
 
-
 
Line -... Line 3358...
-
 
3358
 
3361
 
3359
mouse_not_active:
3362
    cmp   [REDRAW_BACKGROUND],byte 0               ; background update ?
3360
    cmp   [REDRAW_BACKGROUND],byte 0               ; background update ?
3363
    jz    nobackgr
3361
    jz    nobackgr
3364
    cmp    [background_defined], 0
3362
    cmp    [background_defined], 0
3365
    jz    nobackgr
3363
    jz    nobackgr