Subversion Repositories Kolibri OS

Rev

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

Rev 1687 Rev 1689
Line 56... Line 56...
56
;;
56
;;
57
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
57
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
Line 58... Line 58...
58
 
58
 
Line 59... Line 59...
59
include 'macros.inc'
59
include 'macros.inc'
Line 60... Line 60...
60
 
60
 
Line 61... Line 61...
61
$Revision: 1687 $
61
$Revision: 1689 $
Line 551... Line 551...
551
	mov	al, 0xFA
551
	mov	al, 0xFA
552
	out	0x21, al
552
	out	0x21, al
553
	mov	al, 0x3F
553
	mov	al, 0x3F
554
	out	0xA1, al
554
	out	0xA1, al
Line -... Line 555...
-
 
555
 
-
 
556
; Enable interrupts in IDE controller
-
 
557
        mov     al, 0
-
 
558
        mov     dx, 0x3F6
-
 
559
        out     dx, al
-
 
560
        mov     dl, 0x76
-
 
561
        out     dx, al
555
 
562
 
556
;!!!!!!!!!!!!!!!!!!!!!!!!!!
563
;!!!!!!!!!!!!!!!!!!!!!!!!!!
557
include 'detect/disks.inc'
564
include 'detect/disks.inc'
Line 558... Line 565...
558
;!!!!!!!!!!!!!!!!!!!!!!!!!!
565
;!!!!!!!!!!!!!!!!!!!!!!!!!!
Line 2046... Line 2053...
2046
     ret
2053
     ret
2047
 .set_pointer_position:
2054
 .set_pointer_position:
2048
;     cmp  ecx,4  ; set mouse pointer position
2055
;     cmp  ecx,4  ; set mouse pointer position
2049
     dec   ecx
2056
     dec   ecx
2050
     jnz  .set_mouse_button
2057
     jnz  .set_mouse_button
2051
     mov   [MOUSE_Y],dx    ;y
2058
     cmp   dx, word[Screen_Max_Y]
2052
     ror   edx,16
2059
     ja    .end
2053
     mov   [MOUSE_X],dx    ;x
-
 
-
 
2060
 
2054
     rol   edx,16
2061
     rol   edx,16
-
 
2062
     cmp   dx, word[Screen_Max_X]
-
 
2063
     ja    .end
-
 
2064
     mov   [MOUSE_X], edx
2055
     ret
2065
     ret
2056
 .set_mouse_button:
2066
 .set_mouse_button:
2057
;     cmp   ecx,5  ; set mouse button features
2067
;     cmp   ecx,5  ; set mouse button features
2058
     dec   ecx
2068
     dec   ecx
2059
     jnz  .end
2069
     jnz  .end
Line 2122... Line 2132...
2122
endg
2132
endg
Line 2123... Line 2133...
2123
 
2133
 
2124
iglobal
2134
iglobal
2125
version_inf:
2135
version_inf:
2126
  db 0,7,7,0  ; version 0.7.7.0
2136
  db 0,7,7,0  ; version 0.7.7.0
2127
  db UID_KOLIBRI
2137
  db 0		;reserved
2128
  dd __REV__
2138
  dd __REV__
2129
version_end:
2139
version_end:
Line 2130... Line -...
2130
endg
-
 
2131
 
-
 
2132
UID_NONE=0
-
 
2133
UID_MENUETOS=1	 ;official
-
 
2134
UID_KOLIBRI=2	 ;russian
2140
endg
2135
 
2141
 
2136
sys_cachetodiskette:
2142
sys_cachetodiskette:
2137
	cmp	ebx, 1
2143
	cmp	ebx, 1
2138
	jne	.no_floppy_a_save
2144
	jne	.no_floppy_a_save
Line 2586... Line 2592...
2586
 
2592
 
2587
    ; Window state
2593
    ; Window state
2588
	mov	al, [ecx+window_data+WDATA.fl_wstate]
2594
	mov	al, [ecx+window_data+WDATA.fl_wstate]
Line -... Line 2595...
-
 
2595
	stosb
-
 
2596
 
-
 
2597
    ; Event mask (+71)
-
 
2598
        mov     EAX, dword [ECX+CURRENT_TASK+TASKDATA.event_mask]
2589
	stosb
2599
        stosd
2590
 
2600
 
Line 2591... Line 2601...
2591
	pop	esi
2601
	pop	esi
2592
	pop	edi
2602
	pop	edi
Line 2718... Line 2728...
2718
	mov	eax, [Screen_Max_X]
2728
	mov	eax, [Screen_Max_X]
2719
	mov	[edx + RECT.right], eax
2729
	mov	[edx + RECT.right], eax
2720
	mov	eax, [Screen_Max_Y]
2730
	mov	eax, [Screen_Max_Y]
2721
	mov	[edx + RECT.bottom], eax
2731
	mov	[edx + RECT.bottom], eax
Line 2722... Line -...
2722
 
-
 
2723
	mov	edi, [TASK_BASE]
-
 
2724
	or	[edi - twdw + WDATA.fl_wdrawn], 1   ; no new position & buttons from app
-
 
2725
	call	sys_window_mouse
-
 
2726
	ret
-
 
2727
 
2732
 
2728
  srl1:
2733
  srl1:
Line 2729... Line 2734...
2729
	ret
2734
	ret
2730
 
2735