Rev 98 | Rev 103 | Go to most recent revision | Show entire file | Regard whitespace | Details | Blame | Last modification | View Log | RSS feed
Rev 98 | Rev 102 | ||
---|---|---|---|
Line 2186... | Line 2186... | ||
2186 | jb nowindowactivate |
2186 | jb nowindowactivate |
2187 | cmp ebx,[0x3004] |
2187 | cmp ebx,[0x3004] |
2188 | ja nowindowactivate |
2188 | ja nowindowactivate |
2189 | ; edi = position at window_data+ |
2189 | ; edi = position at window_data+ |
2190 | mov edi, ebx ; edi = process number |
2190 | mov edi, ebx ; edi = process number |
2191 | ;shl ebx, 1 |
- | |
2192 | ;add ebx, 0xc000 |
- | |
2193 | ;mov esi, [ebx] ; esi = window stack value |
- | |
2194 | ;and esi, 0xffff ; word |
- | |
2195 | movzx esi, word [0xC000 + ebx*2] |
2191 | movzx esi, word [0xC000 + ebx*2] |
2196 | cmp esi, [0x3004] ; number of processes |
2192 | cmp esi, [0x3004] ; number of processes |
2197 | jz nowindowactivate ; continue if window_stack_value != number_of_processes |
2193 | jz nowindowactivate ; continue if window_stack_value != number_of_processes |
2198 | ; i.e. if window is not already active |
2194 | ; i.e. if window is not already active |
2199 | mov [0xff01],edi ; activate |
2195 | mov [0xff01],edi ; activate |
Line 2214... | Line 2210... | ||
2214 | ;!!!!!!!!!!!!!!!!!!!!!!!! |
2210 | ;!!!!!!!!!!!!!!!!!!!!!!!! |
2215 | include 'blkdev/rdsave.inc' |
2211 | include 'blkdev/rdsave.inc' |
2216 | ;!!!!!!!!!!!!!!!!!!!!!!!! |
2212 | ;!!!!!!!!!!!!!!!!!!!!!!!! |
Line 2217... | Line 2213... | ||
2217 | 2213 | ||
2218 | sysfn_getactive: ; 18.7 = get active window |
2214 | sysfn_getactive: ; 18.7 = get active window |
- | 2215 | mov eax, [0x3004] |
|
2219 | mov eax,[active_process] |
2216 | movzx eax, word [0xC400 + eax*2] |
2220 | mov [esp+36],eax |
2217 | mov [esp+36],eax |
Line 2221... | Line 2218... | ||
2221 | ret |
2218 | ret |
2222 | 2219 | ||
Line 2883... | Line 2880... | ||
2883 | nosyswIII: |
2880 | nosyswIII: |
Line 2884... | Line 2881... | ||
2884 | 2881 | ||
2885 | cmp edi,3 ; type IV - skinned window |
2882 | cmp edi,3 ; type IV - skinned window |
Line 2886... | Line -... | ||
2886 | jne nosyswIV |
- | |
2887 | - | ||
2888 | cli |
- | |
2889 | mov edi,[0x3010] |
- | |
2890 | sub edi,0x3000 |
2883 | jne nosyswIV |
2891 | shr edi,5 |
2884 | |
- | 2885 | ; parameter for drawwindow_IV |
|
- | 2886 | push 0 |
|
- | 2887 | mov edi, [0x3004] |
|
2892 | cmp edi,[active_process] |
2888 | movzx edi, word [0xC400 + edi*2] |
2893 | push 0 |
2889 | cmp edi, [0x3000] |
2894 | jne @f |
- | |
2895 | mov byte [esp],1 |
2890 | jne @f |
Line 2896... | Line 2891... | ||
2896 | @@: ; parameter for drawwindow_IV |
2891 | inc dword [esp] |
2897 | sti |
2892 | @@: |
2898 | 2893 | ||
2899 | inc [mouse_pause] |
2894 | inc [mouse_pause] |
Line 5117... | Line 5112... | ||
5117 | hdpos dd 0x0 ; for boot 0x1 |
5112 | hdpos dd 0x0 ; for boot 0x1 |
5118 | fat32part dd 0x0 ; for boot 0x1 |
5113 | fat32part dd 0x0 ; for boot 0x1 |
Line 5119... | Line 5114... | ||
5119 | 5114 | ||
Line 5120... | Line 5115... | ||
5120 | ;part2_ld dd 0x0 |
5115 | ;part2_ld dd 0x0 |
5121 | - | ||
5122 | ;* start code - get process (3) - Mario79 |
- | |
5123 | active_process dd 0 |
- | |
5124 | active_process_flag db 0 |
5116 | |
5125 | deleted_process dd 0 |
5117 | ;* start code - Mario79 |
5126 | mouse_pause dd 0 |
5118 | mouse_pause dd 0 |
5127 | MouseTickCounter dd 0 |
5119 | MouseTickCounter dd 0 |
5128 | ps2_mouse_detected db 0 |
5120 | ps2_mouse_detected db 0 |
5129 | com1_mouse_detected db 0 |
5121 | com1_mouse_detected db 0 |
Line 5130... | Line 5122... | ||
5130 | com2_mouse_detected db 0 |
5122 | com2_mouse_detected db 0 |
5131 | ;* end code - get active process (3) - Mario79 |
5123 | ;* end code - Mario79 |
5132 | 5124 | ||
Line 5143... | Line 5135... | ||
5143 | 5135 | ||
5144 | iglobal |
5136 | iglobal |
5145 | keyboard dd 0x1 |
5137 | keyboard dd 0x1 |
5146 | sound_dma dd 0x1 |
5138 | sound_dma dd 0x1 |
5147 | syslang dd 0x1 |
- | |
5148 | active_proc_stack_coun dd 0xa400-4 |
5139 | syslang dd 0x1 |
Line 5149... | Line 5140... | ||
5149 | endg |
5140 | endg |
5150 | 5141 | ||
5151 | IncludeIGlobals |
5142 | IncludeIGlobals |