2016-06-11 20:03:44 +02:00
|
|
|
|
;-----------------------;
|
|
|
|
|
; CPU - process manager ;
|
|
|
|
|
;-----------------------;
|
|
|
|
|
|
2021-09-22 16:50:17 +02:00
|
|
|
|
format binary as ""
|
|
|
|
|
|
|
|
|
|
use32
|
|
|
|
|
org 0x0
|
2024-06-14 10:35:46 +02:00
|
|
|
|
|
2021-09-22 16:50:17 +02:00
|
|
|
|
db "MENUET01" ; 8 byte id
|
|
|
|
|
dd 0x01 ; header version
|
|
|
|
|
dd START ; start of code
|
|
|
|
|
dd IM_END ; size of image
|
|
|
|
|
dd U_END ; memory for app
|
|
|
|
|
dd stack_area ; esp
|
|
|
|
|
dd 0x0 ; boot parameters
|
|
|
|
|
dd cur_dir_path ; path
|
2021-02-02 06:13:00 +01:00
|
|
|
|
;-------------------------------------------------------------------------------
|
2024-06-14 10:35:46 +02:00
|
|
|
|
include "lang.inc" ; Language support for locales (UTF-8): de_DE, et_EE, ru_RU, it_IT, en_US.
|
2021-02-02 06:13:00 +01:00
|
|
|
|
include "../../../macros.inc"
|
|
|
|
|
include "../../../develop/libraries/box_lib/trunk/box_lib.mac"
|
|
|
|
|
include "../../../KOSfuncs.inc"
|
|
|
|
|
include "../../../load_lib.mac"
|
|
|
|
|
;-------------------------------------------------------------------------------
|
2021-09-22 16:50:17 +02:00
|
|
|
|
DISPLAY_PROCESSES = 20 ;number of processes to show
|
2021-02-02 06:13:00 +01:00
|
|
|
|
;-------------------------------------------------------------------------------
|
|
|
|
|
WINDOW.WIDTH = PROCESS_TABLE.WIDTH + 10*2
|
|
|
|
|
WINDOW.HEIGHT = WORK_AREA.HEIGHT + 30
|
|
|
|
|
WORK_AREA.HEIGHT = CHECKBOX.Y + BUTTON.HEIGHT + 10
|
|
|
|
|
PROCESS_TABLE:
|
2021-09-22 16:50:17 +02:00
|
|
|
|
.X = 10
|
|
|
|
|
.Y = 10
|
|
|
|
|
.WIDTH = 640
|
|
|
|
|
.HEIGHT = DISPLAY_PROCESSES * BUTTON.HEIGHT
|
2021-02-02 06:13:00 +01:00
|
|
|
|
UNDERTABLE:
|
2021-09-22 16:50:17 +02:00
|
|
|
|
.X = PROCESS_TABLE.X
|
|
|
|
|
.Y = PROCESS_TABLE.Y + PROCESS_TABLE.HEIGHT + 20
|
2021-02-02 06:13:00 +01:00
|
|
|
|
BUTTON:
|
2021-09-22 16:50:17 +02:00
|
|
|
|
.WIDTH = 130
|
|
|
|
|
.HEIGHT = 16 + 4
|
2021-02-02 06:13:00 +01:00
|
|
|
|
EDITBOX:
|
2021-09-22 16:50:17 +02:00
|
|
|
|
.X = CHECKBOX.X + 100
|
|
|
|
|
.Y = UNDERTABLE.Y + BUTTON.HEIGHT + 20
|
|
|
|
|
.WIDTH = 465
|
|
|
|
|
.HEIGHT = 23
|
2024-06-14 10:35:46 +02:00
|
|
|
|
|
2021-02-02 06:13:00 +01:00
|
|
|
|
CHECKBOX:
|
2021-09-22 16:50:17 +02:00
|
|
|
|
.X = PROCESS_TABLE.X
|
|
|
|
|
.Y = UNDERTABLE.Y + BUTTON.HEIGHT + 25
|
2021-02-02 06:13:00 +01:00
|
|
|
|
;-------------------------------------------------------------------------------
|
2021-09-22 16:50:17 +02:00
|
|
|
|
@use_library ;use load lib macros
|
2021-02-02 06:13:00 +01:00
|
|
|
|
;-------------------------------------------------------------------------------
|
2021-09-22 16:50:17 +02:00
|
|
|
|
struc utf8z string
|
2021-02-02 06:13:00 +01:00
|
|
|
|
{
|
2021-09-22 16:50:17 +02:00
|
|
|
|
. db string, 0
|
|
|
|
|
.size = $ - . - 1
|
2021-02-02 06:13:00 +01:00
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
;-------------------------------------------------------------------------------
|
2021-09-22 16:50:17 +02:00
|
|
|
|
START: ; start of execution
|
|
|
|
|
mcall SF_SYS_MISC,SSF_HEAP_INIT
|
|
|
|
|
sys_load_library library_name, library_path, system_path, myimport
|
|
|
|
|
inc eax
|
|
|
|
|
jz close
|
2021-02-02 06:13:00 +01:00
|
|
|
|
;-------------------------------------------------------------------------------
|
2021-09-22 16:50:17 +02:00
|
|
|
|
mcall SF_SET_EVENTS_MASK,0x80000027 ;set event
|
2021-02-02 06:13:00 +01:00
|
|
|
|
;-------------------------------------------------------------------------------
|
2012-04-04 03:08:20 +02:00
|
|
|
|
;set window size and position for 0 function
|
|
|
|
|
;to [winxpos] and [winypos] variables
|
|
|
|
|
;get screen size
|
2021-09-22 16:50:17 +02:00
|
|
|
|
mcall SF_GET_SCREEN_SIZE
|
|
|
|
|
mov ebx,eax
|
2021-02-02 06:13:00 +01:00
|
|
|
|
;calculate (x_screen-WINDOW.WIDTH)/2
|
2021-09-22 16:50:17 +02:00
|
|
|
|
shr ebx,16+1
|
|
|
|
|
sub ebx,WINDOW.WIDTH/2
|
|
|
|
|
shl ebx,16
|
|
|
|
|
mov bx,WINDOW.WIDTH
|
2013-06-02 07:26:24 +02:00
|
|
|
|
;winxpos=xcoord*65536+xsize
|
2021-09-22 16:50:17 +02:00
|
|
|
|
mov [winxpos],ebx
|
2021-02-02 06:13:00 +01:00
|
|
|
|
;calculate (y_screen-WINDOW.HEIGHT)/2
|
2021-09-22 16:50:17 +02:00
|
|
|
|
and eax,0xffff
|
|
|
|
|
shr eax,1
|
|
|
|
|
sub eax,WINDOW.HEIGHT/2
|
|
|
|
|
shl eax,16
|
|
|
|
|
mov ax,WINDOW.HEIGHT
|
2013-06-02 07:26:24 +02:00
|
|
|
|
;winypos=ycoord*65536+ysize
|
2021-09-22 16:50:17 +02:00
|
|
|
|
mov [winypos],eax
|
2021-02-02 06:13:00 +01:00
|
|
|
|
;-------------------------------------------------------------------------------
|
2021-09-22 16:50:17 +02:00
|
|
|
|
init_checkboxes2 check1,check1_end
|
|
|
|
|
mcall SF_STYLE_SETTINGS,SSF_GET_COLORS,sc,40
|
|
|
|
|
edit_boxes_set_sys_color edit1,edit1_end,sc ;set color
|
|
|
|
|
;check_boxes_set_sys_color2 check1,check1_end,sc ;set color
|
2021-02-02 06:13:00 +01:00
|
|
|
|
;-------------------------------------------------------------------------------
|
|
|
|
|
align 4
|
|
|
|
|
;main loop when process name isn"t edited.
|
2013-06-02 07:26:24 +02:00
|
|
|
|
red:
|
2021-09-22 16:50:17 +02:00
|
|
|
|
call draw_window ; redraw all window
|
|
|
|
|
mcall 71, 2, strings.window_caption, 3 ;set window caption
|
2021-02-02 06:13:00 +01:00
|
|
|
|
;-------------------------------------------------------------------------------
|
2013-06-02 07:26:24 +02:00
|
|
|
|
align 4
|
2006-01-03 10:43:31 +01:00
|
|
|
|
still:
|
2021-09-22 16:50:17 +02:00
|
|
|
|
mcall SF_WAIT_EVENT_TIMEOUT,100 ; wait here for event 1 sec.
|
2016-06-11 20:03:44 +02:00
|
|
|
|
|
2021-09-22 16:50:17 +02:00
|
|
|
|
test eax,eax
|
|
|
|
|
jz still_end
|
2013-03-23 22:10:34 +01:00
|
|
|
|
|
2021-09-22 16:50:17 +02:00
|
|
|
|
dec eax ; redraw request ?
|
|
|
|
|
jz red
|
2013-03-23 22:10:34 +01:00
|
|
|
|
|
2021-09-22 16:50:17 +02:00
|
|
|
|
dec eax ; key in buffer ?
|
|
|
|
|
jz key
|
2013-03-23 22:10:34 +01:00
|
|
|
|
|
2021-09-22 16:50:17 +02:00
|
|
|
|
dec eax ; button in buffer ?
|
|
|
|
|
jz button
|
2013-03-23 22:10:34 +01:00
|
|
|
|
|
2021-09-22 16:50:17 +02:00
|
|
|
|
push dword edit1
|
|
|
|
|
call [edit_box_mouse]
|
2013-06-02 07:26:24 +02:00
|
|
|
|
|
2021-09-22 16:50:17 +02:00
|
|
|
|
push dword[check1.flags]
|
2013-06-02 07:26:24 +02:00
|
|
|
|
|
2021-09-22 16:50:17 +02:00
|
|
|
|
push dword check1
|
|
|
|
|
call [check_box_mouse]
|
2013-06-02 07:26:24 +02:00
|
|
|
|
|
2021-09-22 16:50:17 +02:00
|
|
|
|
pop eax
|
2013-06-02 07:26:24 +02:00
|
|
|
|
|
2021-09-22 16:50:17 +02:00
|
|
|
|
cmp eax, dword[check1.flags]
|
|
|
|
|
jz still_end
|
2013-06-02 07:26:24 +02:00
|
|
|
|
|
2021-09-22 16:50:17 +02:00
|
|
|
|
push dword check1
|
|
|
|
|
call [check_box_draw]
|
2021-02-02 06:13:00 +01:00
|
|
|
|
;-------------------------------------------------------------------------------
|
2013-06-02 07:26:24 +02:00
|
|
|
|
align 4
|
|
|
|
|
show_process_info_1:
|
2021-09-22 16:50:17 +02:00
|
|
|
|
mcall SF_SYSTEM_GET, SSF_TIME_COUNT
|
|
|
|
|
add eax, 100
|
|
|
|
|
mov [time_counter],eax
|
2012-04-04 03:08:20 +02:00
|
|
|
|
|
2021-09-22 16:50:17 +02:00
|
|
|
|
call show_process_info ; draw new state of processes
|
|
|
|
|
jmp still
|
2021-02-02 06:13:00 +01:00
|
|
|
|
;-------------------------------------------------------------------------------
|
2013-06-02 07:26:24 +02:00
|
|
|
|
align 4
|
2012-04-04 03:08:20 +02:00
|
|
|
|
still_end:
|
2021-09-22 16:50:17 +02:00
|
|
|
|
mcall SF_SYSTEM_GET,SSF_TIME_COUNT
|
|
|
|
|
cmp [time_counter],eax
|
|
|
|
|
ja still
|
2012-04-04 03:08:20 +02:00
|
|
|
|
|
2021-09-22 16:50:17 +02:00
|
|
|
|
add eax,100
|
|
|
|
|
mov [time_counter],eax
|
2012-04-04 03:08:20 +02:00
|
|
|
|
|
2021-09-22 16:50:17 +02:00
|
|
|
|
call show_process_info ; draw new state of processes
|
|
|
|
|
jmp still
|
2021-02-02 06:13:00 +01:00
|
|
|
|
;-------------------------------------------------------------------------------
|
2013-06-02 07:26:24 +02:00
|
|
|
|
align 4
|
2021-09-22 16:50:17 +02:00
|
|
|
|
key: ; key
|
|
|
|
|
mcall SF_GET_KEY
|
2012-04-04 03:08:20 +02:00
|
|
|
|
|
2021-09-22 16:50:17 +02:00
|
|
|
|
cmp ah,184 ; PageUp
|
|
|
|
|
jz pgdn
|
2012-04-04 03:08:20 +02:00
|
|
|
|
|
2021-09-22 16:50:17 +02:00
|
|
|
|
cmp ah,183
|
|
|
|
|
jz pgup ; PageDown
|
2012-04-04 03:08:20 +02:00
|
|
|
|
|
2021-09-22 16:50:17 +02:00
|
|
|
|
cmp ah,27
|
|
|
|
|
jz close ; Esc
|
2009-10-12 12:51:22 +02:00
|
|
|
|
|
2021-09-22 16:50:17 +02:00
|
|
|
|
push dword edit1
|
|
|
|
|
call [edit_box_key]
|
|
|
|
|
; Check ENTER with ed_focus edit_box
|
|
|
|
|
lea edi,[edit1]
|
|
|
|
|
test word ed_flags,ed_focus
|
|
|
|
|
jz still_end
|
2009-10-12 12:51:22 +02:00
|
|
|
|
|
2021-09-22 16:50:17 +02:00
|
|
|
|
sub ah,13 ; ENTER?
|
|
|
|
|
jz program_start ; RUN a program
|
2009-10-13 10:08:10 +02:00
|
|
|
|
|
2021-09-22 16:50:17 +02:00
|
|
|
|
jmp still
|
2021-02-02 06:13:00 +01:00
|
|
|
|
;-------------------------------------------------------------------------------
|
2013-06-02 07:26:24 +02:00
|
|
|
|
align 4
|
|
|
|
|
button:
|
|
|
|
|
; get button id
|
2021-09-22 16:50:17 +02:00
|
|
|
|
mcall SF_GET_BUTTON
|
|
|
|
|
mov bl, al ; save mouse button to bl
|
|
|
|
|
shr eax,8
|
2006-01-03 10:43:31 +01:00
|
|
|
|
;id in [10,50] corresponds to terminate buttons.
|
2021-09-22 16:50:17 +02:00
|
|
|
|
cmp eax,10
|
|
|
|
|
jb noterm
|
2006-01-03 10:43:31 +01:00
|
|
|
|
|
2021-09-22 16:50:17 +02:00
|
|
|
|
cmp eax,50
|
|
|
|
|
jg noterm
|
2013-06-02 07:26:24 +02:00
|
|
|
|
;calculate button index
|
2021-09-22 16:50:17 +02:00
|
|
|
|
sub eax,11
|
2013-06-02 07:26:24 +02:00
|
|
|
|
;calculate process slot
|
2021-09-22 16:50:17 +02:00
|
|
|
|
mov ecx,[tasklist+4*eax]
|
2006-01-03 10:43:31 +01:00
|
|
|
|
;ignore empty buttons
|
2021-09-22 16:50:17 +02:00
|
|
|
|
test ecx,ecx
|
|
|
|
|
jle still_end
|
|
|
|
|
test bl, bl ; check mouse button
|
|
|
|
|
jz .terminate
|
|
|
|
|
mov eax, ecx
|
|
|
|
|
mov edi, tinfo.params_buf
|
2014-05-30 14:46:16 +02:00
|
|
|
|
;; number in eax
|
|
|
|
|
;; buffer in edi
|
|
|
|
|
; int2str:
|
2021-09-22 16:50:17 +02:00
|
|
|
|
push 0
|
|
|
|
|
mov ecx, 10
|
2016-06-11 20:03:44 +02:00
|
|
|
|
.push:
|
2021-09-22 16:50:17 +02:00
|
|
|
|
xor edx, edx
|
|
|
|
|
div ecx
|
|
|
|
|
add edx, 48
|
|
|
|
|
push edx
|
|
|
|
|
test eax, eax
|
|
|
|
|
jnz .push
|
2016-06-11 20:03:44 +02:00
|
|
|
|
.pop:
|
2021-09-22 16:50:17 +02:00
|
|
|
|
pop eax
|
|
|
|
|
stosb
|
|
|
|
|
test eax, eax
|
|
|
|
|
jnz .pop
|
2016-06-11 20:03:44 +02:00
|
|
|
|
; launch tinfo app
|
2021-09-22 16:50:17 +02:00
|
|
|
|
mov ebx, tinfo
|
|
|
|
|
mov eax, SF_FILE
|
|
|
|
|
int 64
|
|
|
|
|
jmp show_process_info_1
|
2016-06-11 20:03:44 +02:00
|
|
|
|
.terminate:
|
2013-06-02 07:26:24 +02:00
|
|
|
|
;terminate application
|
2021-09-22 16:50:17 +02:00
|
|
|
|
mcall SF_SYSTEM,SSF_TERMINATE_THREAD
|
|
|
|
|
jmp show_process_info_1
|
2021-02-02 06:13:00 +01:00
|
|
|
|
;-------------------------------------------------------------------------------
|
2012-04-04 03:08:20 +02:00
|
|
|
|
align 4
|
|
|
|
|
noterm:
|
|
|
|
|
;special buttons
|
2021-09-22 16:50:17 +02:00
|
|
|
|
dec eax
|
|
|
|
|
jz close
|
2009-10-13 10:08:10 +02:00
|
|
|
|
|
2021-09-22 16:50:17 +02:00
|
|
|
|
sub eax,50
|
|
|
|
|
jz pgdn ;51
|
2006-01-03 10:43:31 +01:00
|
|
|
|
|
2021-09-22 16:50:17 +02:00
|
|
|
|
dec eax
|
|
|
|
|
jz pgup ;52
|
2009-10-13 10:08:10 +02:00
|
|
|
|
|
2021-09-22 16:50:17 +02:00
|
|
|
|
dec eax
|
|
|
|
|
jz reboot ;53
|
2009-10-13 10:08:10 +02:00
|
|
|
|
|
2021-09-22 16:50:17 +02:00
|
|
|
|
dec eax
|
|
|
|
|
jz program_start ;54
|
2009-10-13 10:08:10 +02:00
|
|
|
|
|
2021-09-22 16:50:17 +02:00
|
|
|
|
jmp still_end
|
2013-06-02 07:26:24 +02:00
|
|
|
|
;buttons handlers
|
2021-02-02 06:13:00 +01:00
|
|
|
|
;-------------------------------------------------------------------------------
|
2013-06-02 07:26:24 +02:00
|
|
|
|
align 4
|
2012-04-04 03:08:20 +02:00
|
|
|
|
pgdn:
|
2021-09-22 16:50:17 +02:00
|
|
|
|
sub [list_start],DISPLAY_PROCESSES
|
|
|
|
|
jge show_process_info_1
|
|
|
|
|
mov [list_start],0
|
|
|
|
|
jmp show_process_info_1
|
2021-02-02 06:13:00 +01:00
|
|
|
|
;-------------------------------------------------------------------------------
|
2013-06-02 07:26:24 +02:00
|
|
|
|
align 4
|
2012-04-04 03:08:20 +02:00
|
|
|
|
pgup:
|
2021-09-22 16:50:17 +02:00
|
|
|
|
mov eax,[list_add] ;maximal displayed process slot
|
|
|
|
|
mov [list_start],eax
|
|
|
|
|
jmp show_process_info_1
|
2021-02-02 06:13:00 +01:00
|
|
|
|
;-------------------------------------------------------------------------------
|
2013-06-02 07:26:24 +02:00
|
|
|
|
align 4
|
|
|
|
|
program_start:
|
2021-09-22 16:50:17 +02:00
|
|
|
|
mcall SF_FILE,file_start
|
|
|
|
|
jmp show_process_info_1
|
2021-02-02 06:13:00 +01:00
|
|
|
|
;-------------------------------------------------------------------------------
|
2013-06-02 07:26:24 +02:00
|
|
|
|
align 4
|
|
|
|
|
reboot:
|
2021-09-22 16:50:17 +02:00
|
|
|
|
mcall SF_FILE,sys_reboot
|
2012-04-04 03:08:20 +02:00
|
|
|
|
;close program if we going to reboot
|
2021-02-02 06:13:00 +01:00
|
|
|
|
;-------------------------------------------------------------------------------
|
2013-06-02 07:26:24 +02:00
|
|
|
|
align 4
|
2012-04-04 03:08:20 +02:00
|
|
|
|
close:
|
2021-09-22 16:50:17 +02:00
|
|
|
|
or eax,SF_TERMINATE_PROCESS ; close this program
|
|
|
|
|
mcall
|
2021-02-02 06:13:00 +01:00
|
|
|
|
;-------------------------------------------------------------------------------
|
2013-06-02 07:26:24 +02:00
|
|
|
|
align 4
|
|
|
|
|
draw_empty_slot:
|
2021-09-22 16:50:17 +02:00
|
|
|
|
cmp [draw_window_flag],1
|
|
|
|
|
je @f
|
|
|
|
|
mov ecx,[curposy]
|
|
|
|
|
shl ecx,16
|
|
|
|
|
mov cx, BUTTON.HEIGHT
|
|
|
|
|
mcall SF_DRAW_RECT, <141, PROCESS_TABLE.WIDTH-141>, , [bar_bacground_color]
|
2012-04-07 15:33:23 +02:00
|
|
|
|
@@:
|
2021-09-22 16:50:17 +02:00
|
|
|
|
ret
|
2021-02-02 06:13:00 +01:00
|
|
|
|
;-------------------------------------------------------------------------------
|
2013-06-02 07:26:24 +02:00
|
|
|
|
align 4
|
2006-01-03 10:43:31 +01:00
|
|
|
|
draw_next_process:
|
|
|
|
|
;input:
|
2021-09-22 16:50:17 +02:00
|
|
|
|
; edi - current slot
|
|
|
|
|
; [curposy] - y position
|
2006-01-03 10:43:31 +01:00
|
|
|
|
;output:
|
2021-09-22 16:50:17 +02:00
|
|
|
|
; edi - next slot (or -1 if no next slot)
|
2006-01-03 10:43:31 +01:00
|
|
|
|
;registers corrupted!
|
2021-02-05 01:50:29 +01:00
|
|
|
|
|
|
|
|
|
;putting 2 pixels to make the list of buttons visually solid
|
2021-09-22 16:50:17 +02:00
|
|
|
|
mov ecx,[curposy]
|
|
|
|
|
mcall SF_PUT_PIXEL, PROCESS_TABLE.X, , 0x586468
|
|
|
|
|
add ebx, BUTTON.WIDTH
|
|
|
|
|
mcall
|
|
|
|
|
|
2024-06-14 10:35:46 +02:00
|
|
|
|
;create terminate process button
|
2021-09-22 16:50:17 +02:00
|
|
|
|
;mov ecx,[curposy]
|
|
|
|
|
shl ecx,16
|
|
|
|
|
mov cx, BUTTON.HEIGHT
|
|
|
|
|
mov edx,[index]
|
|
|
|
|
add edx,11
|
|
|
|
|
mov esi,0xaabbcc
|
|
|
|
|
test dword [index],1
|
|
|
|
|
jz @f
|
|
|
|
|
mov esi,0xccddee
|
2012-04-07 15:33:23 +02:00
|
|
|
|
@@:
|
2021-09-22 16:50:17 +02:00
|
|
|
|
add edx,0x80000000 ; delete a button
|
|
|
|
|
mcall SF_DEFINE_BUTTON ; before create
|
|
|
|
|
sub edx,0x80000000 ; a new one below
|
|
|
|
|
mcall SF_DEFINE_BUTTON,<PROCESS_TABLE.X,BUTTON.WIDTH>
|
|
|
|
|
mov [btn_bacground_color],esi
|
2006-01-03 10:43:31 +01:00
|
|
|
|
;draw background for proccess information
|
2021-09-22 16:50:17 +02:00
|
|
|
|
mov edx,0xDDDddf
|
|
|
|
|
test dword [index],1
|
|
|
|
|
jz @f
|
|
|
|
|
mov edx,0xFFFfff
|
2012-04-07 15:33:23 +02:00
|
|
|
|
@@:
|
2021-09-22 16:50:17 +02:00
|
|
|
|
;inc cx
|
2021-02-02 06:13:00 +01:00
|
|
|
|
|
2021-09-22 16:50:17 +02:00
|
|
|
|
mcall SF_DRAW_RECT, <141, PROCESS_TABLE.WIDTH-141>
|
2021-02-02 06:13:00 +01:00
|
|
|
|
|
2021-09-22 16:50:17 +02:00
|
|
|
|
mov [bar_bacground_color],edx
|
2016-06-11 20:03:44 +02:00
|
|
|
|
;nothing else should be done if there is no process for this button
|
2021-09-22 16:50:17 +02:00
|
|
|
|
cmp edi,-1
|
|
|
|
|
jne .return_1
|
2012-04-07 15:33:23 +02:00
|
|
|
|
|
2021-09-22 16:50:17 +02:00
|
|
|
|
call draw_empty_slot
|
|
|
|
|
or edi,-1
|
|
|
|
|
jmp .ret
|
2021-02-02 06:13:00 +01:00
|
|
|
|
;-------------------------------------------------------------------------------
|
2012-04-04 03:08:20 +02:00
|
|
|
|
align 4
|
2009-11-11 19:44:12 +01:00
|
|
|
|
.return_1:
|
2012-04-04 03:08:20 +02:00
|
|
|
|
;find process
|
2021-09-22 16:50:17 +02:00
|
|
|
|
inc edi
|
2013-06-02 07:26:24 +02:00
|
|
|
|
;more comfortable register for next loop
|
2021-09-22 16:50:17 +02:00
|
|
|
|
mov ecx,edi
|
2013-06-02 07:26:24 +02:00
|
|
|
|
;precacluate pointer to process buffer
|
2021-09-22 16:50:17 +02:00
|
|
|
|
mov ebx,process_info_buffer
|
2021-02-02 06:13:00 +01:00
|
|
|
|
;-------------------------------------------------------------------------------
|
2012-04-04 03:08:20 +02:00
|
|
|
|
align 4
|
2006-01-03 10:43:31 +01:00
|
|
|
|
.find_loop:
|
2021-09-22 16:50:17 +02:00
|
|
|
|
cmp ecx,256
|
|
|
|
|
jge .no_processes
|
2006-01-03 10:43:31 +01:00
|
|
|
|
;load process information in buffer
|
2021-09-22 16:50:17 +02:00
|
|
|
|
mcall SF_THREAD_INFO
|
2006-01-03 10:43:31 +01:00
|
|
|
|
;if current slot greater than maximal slot,
|
2013-06-02 07:26:24 +02:00
|
|
|
|
;there is no more proccesses.
|
2021-09-22 16:50:17 +02:00
|
|
|
|
cmp ecx,eax
|
|
|
|
|
jg .no_processes
|
2013-06-02 07:26:24 +02:00
|
|
|
|
;if slot state is equal to 9, it is empty.
|
2021-09-22 16:50:17 +02:00
|
|
|
|
cmp [process_info_buffer+process_information.slot_state],9
|
|
|
|
|
jnz .process_found
|
2013-06-02 07:26:24 +02:00
|
|
|
|
|
2021-09-22 16:50:17 +02:00
|
|
|
|
inc ecx
|
|
|
|
|
jmp .find_loop
|
2021-02-02 06:13:00 +01:00
|
|
|
|
;-------------------------------------------------------------------------------
|
2012-04-04 03:08:20 +02:00
|
|
|
|
align 4
|
2006-01-03 10:43:31 +01:00
|
|
|
|
.no_processes:
|
2021-09-22 16:50:17 +02:00
|
|
|
|
call draw_empty_slot
|
|
|
|
|
or edi,-1
|
|
|
|
|
ret
|
2021-02-02 06:13:00 +01:00
|
|
|
|
;-------------------------------------------------------------------------------
|
2012-04-04 03:08:20 +02:00
|
|
|
|
align 4
|
2006-01-03 10:43:31 +01:00
|
|
|
|
.process_found:
|
2009-11-11 19:44:12 +01:00
|
|
|
|
;check on/off check box
|
2021-09-22 16:50:17 +02:00
|
|
|
|
test dword [check1.flags], ch_flag_en
|
|
|
|
|
jnz .no_filter
|
2012-04-04 03:08:20 +02:00
|
|
|
|
|
2021-09-22 16:50:17 +02:00
|
|
|
|
cmp dword [process_info_buffer+10],"ICON"
|
|
|
|
|
jnz @f
|
|
|
|
|
cmp dword [process_info_buffer+10+4],0
|
|
|
|
|
jz .return_1
|
2013-07-08 07:59:43 +02:00
|
|
|
|
@@:
|
2021-09-22 16:50:17 +02:00
|
|
|
|
cmp dword [process_info_buffer+10],"IDLE"
|
|
|
|
|
jnz @f
|
|
|
|
|
cmp dword [process_info_buffer+10+4],0
|
|
|
|
|
jz .return_1
|
2013-07-08 07:59:43 +02:00
|
|
|
|
@@:
|
2021-09-22 16:50:17 +02:00
|
|
|
|
cmp word [process_info_buffer+10],"OS"
|
|
|
|
|
jnz @f
|
|
|
|
|
cmp dword [process_info_buffer+10+2],0
|
|
|
|
|
jz .return_1
|
2013-07-08 07:59:43 +02:00
|
|
|
|
@@:
|
2021-09-22 16:50:17 +02:00
|
|
|
|
cmp byte [process_info_buffer+10],"@"
|
|
|
|
|
jz .return_1
|
2021-02-02 06:13:00 +01:00
|
|
|
|
;-------------------------------------------------------------------------------
|
2012-04-04 03:08:20 +02:00
|
|
|
|
align 4
|
2013-07-08 07:59:43 +02:00
|
|
|
|
.no_filter:
|
2021-09-22 16:50:17 +02:00
|
|
|
|
mov edi,ecx
|
|
|
|
|
mov [list_add],ecx
|
2013-06-02 07:26:24 +02:00
|
|
|
|
;get processor cpeed
|
2006-01-03 10:43:31 +01:00
|
|
|
|
;for percent calculating
|
2021-09-22 16:50:17 +02:00
|
|
|
|
mcall SF_SYSTEM,SSF_GET_CPU_FREQUENCY
|
|
|
|
|
xor edx,edx
|
|
|
|
|
mov ebx,100
|
|
|
|
|
div ebx
|
2006-01-03 10:43:31 +01:00
|
|
|
|
;eax = number of operation for 1% now
|
|
|
|
|
;calculate process cpu usage percent
|
2021-09-22 16:50:17 +02:00
|
|
|
|
mov ebx,eax
|
|
|
|
|
mov eax,[process_info_buffer+process_information.cpu_usage]
|
|
|
|
|
; cdq
|
|
|
|
|
xor edx,edx ; for CPU more 2 GHz - mike.dld
|
|
|
|
|
div ebx
|
|
|
|
|
mov [cpu_percent],eax
|
2006-01-03 10:43:31 +01:00
|
|
|
|
;set text color to display process information
|
2021-09-22 16:50:17 +02:00
|
|
|
|
;0% : black
|
|
|
|
|
;1-80% : green
|
2006-01-03 10:43:31 +01:00
|
|
|
|
;81-100% : red
|
2021-09-22 16:50:17 +02:00
|
|
|
|
test eax,eax
|
|
|
|
|
jnz .no_black
|
2009-10-13 10:08:10 +02:00
|
|
|
|
|
2021-09-22 16:50:17 +02:00
|
|
|
|
mov esi, 0x10000000
|
|
|
|
|
jmp .color_set
|
2021-02-02 06:13:00 +01:00
|
|
|
|
;-------------------------------------------------------------------------------
|
2012-04-04 03:08:20 +02:00
|
|
|
|
align 4
|
2013-06-02 07:26:24 +02:00
|
|
|
|
.no_black:
|
2021-09-22 16:50:17 +02:00
|
|
|
|
cmp eax,80
|
|
|
|
|
ja .no_green
|
2009-10-13 10:08:10 +02:00
|
|
|
|
|
2021-09-22 16:50:17 +02:00
|
|
|
|
mov esi, 0x10107A30
|
|
|
|
|
jmp .color_set
|
2021-02-02 06:13:00 +01:00
|
|
|
|
;-------------------------------------------------------------------------------
|
2012-04-04 03:08:20 +02:00
|
|
|
|
align 4
|
2006-01-03 10:43:31 +01:00
|
|
|
|
.no_green:
|
2021-09-22 16:50:17 +02:00
|
|
|
|
mov esi,0x10AC0000
|
2021-02-02 06:13:00 +01:00
|
|
|
|
;-------------------------------------------------------------------------------
|
2012-04-04 03:08:20 +02:00
|
|
|
|
align 4
|
2006-01-03 10:43:31 +01:00
|
|
|
|
.color_set:
|
|
|
|
|
;show slot number
|
2021-02-02 06:13:00 +01:00
|
|
|
|
;ecx haven"t changed since .process_found
|
2021-09-22 16:50:17 +02:00
|
|
|
|
push edi
|
|
|
|
|
mov eax, ecx
|
|
|
|
|
mov ebx, [curposy]
|
|
|
|
|
add ebx, 40 shl 16 + 3
|
|
|
|
|
mov ecx, esi
|
|
|
|
|
xor edx, edx
|
|
|
|
|
call draw_ra_dec_number
|
|
|
|
|
push ecx
|
2006-01-03 10:43:31 +01:00
|
|
|
|
;show process name
|
2021-09-22 16:50:17 +02:00
|
|
|
|
mov ebx,[curposy]
|
|
|
|
|
add ebx,50*65536+3
|
|
|
|
|
mov ecx, esi
|
|
|
|
|
or ecx, 0x80000000
|
|
|
|
|
mcall SF_DRAW_TEXT,,,process_info_buffer.process_name,11
|
|
|
|
|
pop ecx
|
2021-02-02 06:13:00 +01:00
|
|
|
|
;show PTID
|
2021-09-22 16:50:17 +02:00
|
|
|
|
mov eax, [process_info_buffer.PID]
|
|
|
|
|
add ebx, 160 shl 16
|
|
|
|
|
xor edx, edx
|
|
|
|
|
call draw_ra_dec_number
|
2006-01-03 10:43:31 +01:00
|
|
|
|
;show cpu usage
|
2021-09-22 16:50:17 +02:00
|
|
|
|
mov eax, [process_info_buffer.cpu_usage]
|
|
|
|
|
add ebx, 100 shl 16
|
|
|
|
|
call draw_ra_dec_number
|
2006-01-03 10:43:31 +01:00
|
|
|
|
;show cpu percent
|
2021-09-22 16:50:17 +02:00
|
|
|
|
mov eax, [cpu_percent]
|
|
|
|
|
add ebx, 55 shl 16
|
|
|
|
|
call draw_ra_dec_number
|
2006-01-03 10:43:31 +01:00
|
|
|
|
;show memory usage
|
2021-09-22 16:50:17 +02:00
|
|
|
|
mov eax, [process_info_buffer.used_memory]
|
|
|
|
|
add ebx, 60 shl 16
|
|
|
|
|
call draw_ra_data_size
|
2021-02-02 06:13:00 +01:00
|
|
|
|
;show window stack position
|
2021-09-22 16:50:17 +02:00
|
|
|
|
movzx eax, word [process_info_buffer.window_stack_position]
|
|
|
|
|
add ebx, 70 shl 16
|
|
|
|
|
call draw_ra_dec_number
|
2021-02-02 06:13:00 +01:00
|
|
|
|
;show window x size
|
2021-09-22 16:50:17 +02:00
|
|
|
|
movzx eax, word [process_info_buffer.box.left]
|
|
|
|
|
add ebx, 70 shl 16
|
|
|
|
|
call draw_ra_dec_number
|
2021-02-02 06:13:00 +01:00
|
|
|
|
;show window y size
|
2021-09-22 16:50:17 +02:00
|
|
|
|
movzx eax, word [process_info_buffer.box.top]
|
|
|
|
|
add ebx, 70 shl 16
|
2024-06-14 10:35:46 +02:00
|
|
|
|
call draw_ra_dec_number
|
2021-09-22 16:50:17 +02:00
|
|
|
|
pop edi
|
2021-02-02 06:13:00 +01:00
|
|
|
|
;-------------------------------------------------------------------------------
|
2012-04-04 03:08:20 +02:00
|
|
|
|
align 4
|
2006-01-03 10:43:31 +01:00
|
|
|
|
.ret:
|
|
|
|
|
;build index->slot map for terminating processes.
|
2021-09-22 16:50:17 +02:00
|
|
|
|
mov eax,[index]
|
|
|
|
|
mov [tasklist+4*eax],edi
|
|
|
|
|
ret
|
2021-02-02 06:13:00 +01:00
|
|
|
|
;-------------------------------------------------------------------------------
|
2013-06-02 07:26:24 +02:00
|
|
|
|
align 4
|
2012-04-04 03:08:20 +02:00
|
|
|
|
f11:
|
2013-06-02 07:26:24 +02:00
|
|
|
|
;full update
|
2021-09-22 16:50:17 +02:00
|
|
|
|
push edi
|
|
|
|
|
call draw_window
|
|
|
|
|
pop edi
|
2021-02-02 06:13:00 +01:00
|
|
|
|
;-------------------------------------------------------------------------------
|
2021-09-22 16:50:17 +02:00
|
|
|
|
; *********************************************
|
|
|
|
|
; ******* WINDOW DEFINITIONS AND DRAW ********
|
|
|
|
|
; *********************************************
|
2013-06-02 07:26:24 +02:00
|
|
|
|
align 4
|
2006-01-03 10:43:31 +01:00
|
|
|
|
draw_window:
|
2021-09-22 16:50:17 +02:00
|
|
|
|
mcall SF_REDRAW, SSF_BEGIN_DRAW
|
2012-04-04 03:08:20 +02:00
|
|
|
|
; DRAW WINDOW
|
2021-09-22 16:50:17 +02:00
|
|
|
|
xor eax,eax ; function 0 : define and draw window
|
|
|
|
|
xor esi,esi
|
|
|
|
|
mcall ,[winxpos],[winypos], 0x24FFFFFF
|
|
|
|
|
|
|
|
|
|
mcall SF_THREAD_INFO,process_info_buffer,-1
|
|
|
|
|
|
|
|
|
|
mov eax,[ebx+70]
|
|
|
|
|
mov [window_status],eax
|
|
|
|
|
test [window_status],100b ; window is rolled up
|
|
|
|
|
jnz .exit
|
|
|
|
|
|
|
|
|
|
test [window_status],10b ; window is minimized to panel
|
|
|
|
|
jnz .exit
|
2024-06-14 10:35:46 +02:00
|
|
|
|
|
2021-09-22 16:50:17 +02:00
|
|
|
|
mov eax, strings.process_name
|
|
|
|
|
mov ebx, 130 shl 16 + 5
|
|
|
|
|
xor ecx, ecx
|
|
|
|
|
call draw_ra_text
|
2024-06-14 10:35:46 +02:00
|
|
|
|
|
2021-09-22 16:50:17 +02:00
|
|
|
|
mov eax, strings.ptid
|
|
|
|
|
add ebx, 80 shl 16
|
|
|
|
|
call draw_ra_text
|
2024-06-14 10:35:46 +02:00
|
|
|
|
|
2021-09-22 16:50:17 +02:00
|
|
|
|
mov eax, strings.cpu_usage_cycles
|
|
|
|
|
add ebx, 100 shl 16
|
|
|
|
|
call draw_ra_text
|
2024-06-14 10:35:46 +02:00
|
|
|
|
|
2021-09-22 16:50:17 +02:00
|
|
|
|
mov eax, strings.cpu_usage_percent
|
|
|
|
|
add ebx, 55 shl 16
|
|
|
|
|
call draw_ra_text
|
2024-06-14 10:35:46 +02:00
|
|
|
|
|
2021-09-22 16:50:17 +02:00
|
|
|
|
mov eax, strings.memory_usage
|
|
|
|
|
add ebx, 60 shl 16
|
|
|
|
|
call draw_ra_text
|
2024-06-14 10:35:46 +02:00
|
|
|
|
|
2021-09-22 16:50:17 +02:00
|
|
|
|
mov eax, strings.window_stack_pos
|
|
|
|
|
add ebx, 70 shl 16
|
|
|
|
|
call draw_ra_text
|
2024-06-14 10:35:46 +02:00
|
|
|
|
|
2021-09-22 16:50:17 +02:00
|
|
|
|
mov eax, strings.window_position.x
|
|
|
|
|
add ebx, 70 shl 16
|
|
|
|
|
call draw_ra_text
|
2024-06-14 10:35:46 +02:00
|
|
|
|
|
2021-09-22 16:50:17 +02:00
|
|
|
|
mov eax, strings.window_position.y
|
|
|
|
|
add ebx, 70 shl 16
|
|
|
|
|
call draw_ra_text
|
|
|
|
|
|
|
|
|
|
mcall SF_SYSTEM_GET,SSF_TIME_COUNT
|
|
|
|
|
add eax,100
|
|
|
|
|
mov [time_counter],eax
|
|
|
|
|
|
|
|
|
|
mov [draw_window_flag],1
|
|
|
|
|
call show_process_info
|
|
|
|
|
mov [draw_window_flag],0
|
|
|
|
|
|
|
|
|
|
push dword edit1
|
|
|
|
|
call [edit_box_draw]
|
|
|
|
|
|
|
|
|
|
push dword check1
|
|
|
|
|
call [check_box_draw]
|
2021-02-02 06:13:00 +01:00
|
|
|
|
|
|
|
|
|
;previous page button, ID = 51:
|
2021-09-22 16:50:17 +02:00
|
|
|
|
mov eax, strings.previous_page
|
|
|
|
|
mov ebx, UNDERTABLE.X shl 16 + UNDERTABLE.Y
|
|
|
|
|
mov ecx, 51
|
|
|
|
|
mov edx, 0xCCDDEE
|
|
|
|
|
xor esi, esi
|
|
|
|
|
call draw_button_with_caption
|
2021-02-02 06:13:00 +01:00
|
|
|
|
;next page button, ID = 52:
|
2021-09-22 16:50:17 +02:00
|
|
|
|
mov eax, strings.next_page
|
|
|
|
|
add ebx, 10 shl 16
|
|
|
|
|
inc ecx
|
|
|
|
|
call draw_button_with_caption
|
2021-02-02 06:13:00 +01:00
|
|
|
|
;reboot button, ID = 53:
|
2021-09-22 16:50:17 +02:00
|
|
|
|
mov eax, strings.reboot
|
|
|
|
|
add ebx, 345 shl 16
|
|
|
|
|
inc ecx
|
|
|
|
|
call draw_button_with_caption
|
2021-02-02 06:13:00 +01:00
|
|
|
|
;run button, ID = 54
|
2021-09-22 16:50:17 +02:00
|
|
|
|
mov eax, strings.run
|
|
|
|
|
mov ebx, (EDITBOX.X + EDITBOX.WIDTH + 10) shl 16 + (EDITBOX.Y + EDITBOX.HEIGHT/2 - BUTTON.HEIGHT/2)
|
|
|
|
|
inc ecx
|
|
|
|
|
call draw_button_with_caption
|
2021-02-02 06:13:00 +01:00
|
|
|
|
;-------------------------------------------------------------------------------
|
2012-04-07 16:21:53 +02:00
|
|
|
|
align 4
|
|
|
|
|
.exit:
|
2021-09-22 16:50:17 +02:00
|
|
|
|
mcall SF_REDRAW, SSF_END_DRAW
|
|
|
|
|
ret
|
2021-02-02 06:13:00 +01:00
|
|
|
|
;-------------------------------------------------------------------------------
|
2012-04-04 03:08:20 +02:00
|
|
|
|
align 4
|
|
|
|
|
show_process_info:
|
2021-09-22 16:50:17 +02:00
|
|
|
|
test [window_status], 100b ; window is rolled up
|
|
|
|
|
jnz .exit
|
2012-04-07 16:21:53 +02:00
|
|
|
|
|
2021-09-22 16:50:17 +02:00
|
|
|
|
test [window_status], 10b ; window is minimized to panel
|
|
|
|
|
jnz .exit
|
2012-04-07 16:21:53 +02:00
|
|
|
|
|
2021-09-22 16:50:17 +02:00
|
|
|
|
mov ecx,DISPLAY_PROCESSES
|
|
|
|
|
mov edi,tasklist
|
|
|
|
|
xor eax,eax
|
|
|
|
|
cld
|
|
|
|
|
rep stosd
|
2013-09-29 13:05:02 +02:00
|
|
|
|
|
2021-09-22 16:50:17 +02:00
|
|
|
|
mov edi,[list_start]
|
|
|
|
|
mov [list_add],edi
|
|
|
|
|
mov dword [index],0
|
|
|
|
|
mov dword [curposy],20
|
2021-02-02 06:13:00 +01:00
|
|
|
|
;-------------------------------------------------------------------------------
|
2012-04-04 03:08:20 +02:00
|
|
|
|
align 4
|
|
|
|
|
.loop_draw:
|
2021-09-22 16:50:17 +02:00
|
|
|
|
call draw_next_process
|
|
|
|
|
inc dword [index]
|
|
|
|
|
add dword [curposy],16+4
|
|
|
|
|
cmp [index],DISPLAY_PROCESSES
|
|
|
|
|
jl .loop_draw
|
2021-02-02 06:13:00 +01:00
|
|
|
|
;-------------------------------------------------------------------------------
|
2012-04-07 16:21:53 +02:00
|
|
|
|
align 4
|
|
|
|
|
.exit:
|
2021-09-22 16:50:17 +02:00
|
|
|
|
ret
|
2024-06-14 10:35:46 +02:00
|
|
|
|
|
2021-02-02 06:13:00 +01:00
|
|
|
|
;-------------------------------------------------------------------------------
|
|
|
|
|
|
|
|
|
|
draw_ra_dec_number:
|
|
|
|
|
;-------------------------------------------------------------------------------
|
|
|
|
|
;draws (posfixed) number with flush right alignment in decimal form
|
|
|
|
|
;8x16 number + 8x16 UTF8Z text
|
|
|
|
|
;in:
|
|
|
|
|
;eax = number
|
|
|
|
|
;ebx = right margin coordinates (x shl 16 + y)
|
|
|
|
|
;ecx = 0x00RRGGBB
|
|
|
|
|
;edx = pointer to postfix string or 0 - no postfix
|
|
|
|
|
;-------------------------------------------------------------------------------
|
2021-09-22 16:50:17 +02:00
|
|
|
|
pusha
|
|
|
|
|
|
|
|
|
|
ror ebx, 16
|
|
|
|
|
mov ebp, eax
|
2024-06-14 10:35:46 +02:00
|
|
|
|
|
2021-09-22 16:50:17 +02:00
|
|
|
|
test edx, edx
|
|
|
|
|
jz .no_postfix
|
2024-06-14 10:35:46 +02:00
|
|
|
|
|
2021-09-22 16:50:17 +02:00
|
|
|
|
mov eax, edx
|
|
|
|
|
call count_utf8z_chars
|
2024-06-14 10:35:46 +02:00
|
|
|
|
|
2021-09-22 16:50:17 +02:00
|
|
|
|
test eax, eax
|
|
|
|
|
jz .no_postfix
|
|
|
|
|
push ecx
|
|
|
|
|
lea eax, [eax*8]
|
|
|
|
|
sub bx, ax
|
|
|
|
|
rol ebx, 16
|
|
|
|
|
or ecx, 0xB0000000
|
|
|
|
|
mcall SF_DRAW_TEXT
|
|
|
|
|
ror ebx, 16
|
|
|
|
|
pop ecx
|
2024-06-14 10:35:46 +02:00
|
|
|
|
|
2021-02-02 06:13:00 +01:00
|
|
|
|
.no_postfix:
|
2021-09-22 16:50:17 +02:00
|
|
|
|
mov eax, ebp
|
|
|
|
|
push edx
|
2021-02-02 06:13:00 +01:00
|
|
|
|
|
2021-09-22 16:50:17 +02:00
|
|
|
|
xor edi, edi
|
2024-06-14 10:35:46 +02:00
|
|
|
|
|
2021-09-22 16:50:17 +02:00
|
|
|
|
mov esi, 10
|
2021-02-02 06:13:00 +01:00
|
|
|
|
@@:
|
2021-09-22 16:50:17 +02:00
|
|
|
|
xor edx, edx
|
|
|
|
|
div esi
|
|
|
|
|
inc edi
|
|
|
|
|
test eax, eax
|
|
|
|
|
jz @f
|
|
|
|
|
jmp @b
|
2021-02-02 06:13:00 +01:00
|
|
|
|
|
|
|
|
|
@@:
|
2021-09-22 16:50:17 +02:00
|
|
|
|
pop edx
|
|
|
|
|
mov esi, ecx
|
|
|
|
|
or esi, 0x10000000
|
|
|
|
|
mov ecx, ebp
|
|
|
|
|
mov edx, ebx
|
|
|
|
|
lea eax, [edi*8]
|
|
|
|
|
sub dx, ax
|
|
|
|
|
rol edx, 16
|
|
|
|
|
mcall SF_DRAW_NUMBER, (11 shl 16) or 0x80000000
|
2024-06-14 10:35:46 +02:00
|
|
|
|
|
2021-09-22 16:50:17 +02:00
|
|
|
|
popa
|
|
|
|
|
ret
|
2021-02-02 06:13:00 +01:00
|
|
|
|
;-------------------------------------------------------------------------------
|
|
|
|
|
|
|
|
|
|
draw_ra_data_size:
|
|
|
|
|
;-------------------------------------------------------------------------------
|
|
|
|
|
;draws data size with flush right alignment in following form:
|
|
|
|
|
;n (for <1024 bytes) or n xB (KB/MB/GB)
|
|
|
|
|
;8x16 font
|
|
|
|
|
;in:
|
|
|
|
|
;eax = number
|
|
|
|
|
;ebx = right margin coordinates (x shl 16 + y)
|
|
|
|
|
;ecx = 0x00RRGGBB
|
|
|
|
|
;-------------------------------------------------------------------------------
|
2021-09-22 16:50:17 +02:00
|
|
|
|
pusha
|
2021-02-02 06:13:00 +01:00
|
|
|
|
|
2021-09-22 16:50:17 +02:00
|
|
|
|
xor edx, edx
|
|
|
|
|
cmp eax, 1024
|
|
|
|
|
ja @f
|
|
|
|
|
jmp .draw_text
|
2024-06-14 10:35:46 +02:00
|
|
|
|
|
2021-02-02 06:13:00 +01:00
|
|
|
|
@@:
|
2021-09-22 16:50:17 +02:00
|
|
|
|
cmp eax, 1024*1024
|
|
|
|
|
jae @f
|
|
|
|
|
mov esi, 1024
|
|
|
|
|
div esi
|
|
|
|
|
mov edx, strings.KB
|
|
|
|
|
jmp .draw_text
|
2024-06-14 10:35:46 +02:00
|
|
|
|
|
2021-02-02 06:13:00 +01:00
|
|
|
|
@@:
|
2021-09-22 16:50:17 +02:00
|
|
|
|
cmp eax, 1024*1024*1024
|
|
|
|
|
jae @f
|
|
|
|
|
mov esi, 1024*1024
|
|
|
|
|
div esi
|
|
|
|
|
mov edx, strings.MB
|
|
|
|
|
jmp .draw_text
|
2024-06-14 10:35:46 +02:00
|
|
|
|
|
2021-02-02 06:13:00 +01:00
|
|
|
|
@@:
|
2021-09-22 16:50:17 +02:00
|
|
|
|
mov esi, 1024*1024*1024
|
|
|
|
|
div esi
|
|
|
|
|
mov edx, strings.GB
|
2024-06-14 10:35:46 +02:00
|
|
|
|
|
2021-02-02 06:13:00 +01:00
|
|
|
|
.draw_text:
|
2021-09-22 16:50:17 +02:00
|
|
|
|
call draw_ra_dec_number
|
2024-06-14 10:35:46 +02:00
|
|
|
|
|
2021-09-22 16:50:17 +02:00
|
|
|
|
popa
|
|
|
|
|
ret
|
2021-02-02 06:13:00 +01:00
|
|
|
|
;-------------------------------------------------------------------------------
|
|
|
|
|
|
|
|
|
|
draw_ra_text:
|
|
|
|
|
;-------------------------------------------------------------------------------
|
|
|
|
|
;draws 8x16 UTF8Z text with flush right alignment in decimal form
|
|
|
|
|
;in:
|
|
|
|
|
;eax = pointer to text string
|
|
|
|
|
;ebx = right margin coordinates (x shl 16 + y)
|
|
|
|
|
;ecx = 0x00RRGGBB
|
|
|
|
|
;-------------------------------------------------------------------------------
|
2021-09-22 16:50:17 +02:00
|
|
|
|
pusha
|
|
|
|
|
|
|
|
|
|
ror ebx, 16
|
|
|
|
|
mov edx, eax
|
2024-06-14 10:35:46 +02:00
|
|
|
|
|
2021-09-22 16:50:17 +02:00
|
|
|
|
call count_utf8z_chars
|
2024-06-14 10:35:46 +02:00
|
|
|
|
|
2021-09-22 16:50:17 +02:00
|
|
|
|
test eax, eax
|
|
|
|
|
jz .ret
|
|
|
|
|
lea eax, [eax*8]
|
|
|
|
|
sub bx, ax
|
|
|
|
|
rol ebx, 16
|
|
|
|
|
or ecx, 0xB0000000
|
|
|
|
|
mcall SF_DRAW_TEXT
|
2024-06-14 10:35:46 +02:00
|
|
|
|
|
2021-02-02 06:13:00 +01:00
|
|
|
|
.ret:
|
2021-09-22 16:50:17 +02:00
|
|
|
|
popa
|
|
|
|
|
ret
|
2021-02-02 06:13:00 +01:00
|
|
|
|
;-------------------------------------------------------------------------------
|
|
|
|
|
|
|
|
|
|
draw_button_with_caption:
|
|
|
|
|
;-------------------------------------------------------------------------------
|
|
|
|
|
;draws button with 8x16 UTF8Z caption in center
|
|
|
|
|
;in:
|
|
|
|
|
;eax = pointer to button caption or 0 - no caption
|
|
|
|
|
;ebx = x shl 16 + y
|
|
|
|
|
;ecx = 0x00XXXXXX, where XXXXXX - button ID
|
|
|
|
|
;edx = 0x00RRGGBB - button color
|
|
|
|
|
;esi = 0x00RRGGBB - text color
|
|
|
|
|
;out:
|
|
|
|
|
;eax = width of button
|
|
|
|
|
;ebx = x+width shl 16 + y
|
|
|
|
|
;-------------------------------------------------------------------------------
|
2021-09-22 16:50:17 +02:00
|
|
|
|
pusha
|
2024-06-14 10:35:46 +02:00
|
|
|
|
|
2021-09-22 16:50:17 +02:00
|
|
|
|
xor ebp, ebp
|
|
|
|
|
mov edi, eax
|
|
|
|
|
test eax, eax
|
|
|
|
|
jz .no_caption_0
|
|
|
|
|
|
|
|
|
|
call count_utf8z_chars
|
|
|
|
|
mov ebp, eax
|
|
|
|
|
|
2024-06-14 10:35:46 +02:00
|
|
|
|
.no_caption_0:
|
2021-09-22 16:50:17 +02:00
|
|
|
|
push ebx esi
|
|
|
|
|
lea eax, [ebp*8]
|
|
|
|
|
mov esi, edx
|
|
|
|
|
mov edx, ecx
|
|
|
|
|
mov ecx, ebx
|
|
|
|
|
shl ecx, 16
|
|
|
|
|
mov bx, ax
|
|
|
|
|
add bx, 3*2
|
|
|
|
|
movzx eax, bx
|
|
|
|
|
mov dword [esp+4*2+4*7], eax ;out eax = width
|
|
|
|
|
add word [esp+4*2+4*4+2], ax ;out ebx = x+width shl 16 + y
|
|
|
|
|
mov cx, BUTTON.HEIGHT
|
|
|
|
|
mcall SF_DEFINE_BUTTON
|
|
|
|
|
pop esi ebx
|
|
|
|
|
test edi, edi
|
|
|
|
|
jz .no_caption_1
|
|
|
|
|
mov edx, edi
|
|
|
|
|
add ebx, 3 shl 16 + 3
|
|
|
|
|
mov ecx, esi
|
|
|
|
|
or ecx, 0xB0000000
|
|
|
|
|
mcall SF_DRAW_TEXT
|
2024-06-14 10:35:46 +02:00
|
|
|
|
|
2021-02-02 06:13:00 +01:00
|
|
|
|
.no_caption_1:
|
2021-09-22 16:50:17 +02:00
|
|
|
|
popa
|
|
|
|
|
ret
|
2021-02-02 06:13:00 +01:00
|
|
|
|
;-------------------------------------------------------------------------------
|
|
|
|
|
|
|
|
|
|
count_utf8z_chars:
|
|
|
|
|
;-------------------------------------------------------------------------------
|
|
|
|
|
;in:
|
|
|
|
|
;eax = pointer to UTF8Z string
|
|
|
|
|
;out:
|
|
|
|
|
;eax = count of chars (excluding finishing zero) (0 if string is empty or invalid)
|
|
|
|
|
;-------------------------------------------------------------------------------
|
2021-09-22 16:50:17 +02:00
|
|
|
|
push esi ebx
|
|
|
|
|
mov esi, eax
|
|
|
|
|
xor ebx, ebx
|
2024-06-14 10:35:46 +02:00
|
|
|
|
|
2021-02-02 06:13:00 +01:00
|
|
|
|
.0:
|
2021-09-22 16:50:17 +02:00
|
|
|
|
lodsb
|
|
|
|
|
test al, al
|
|
|
|
|
jz .ok
|
|
|
|
|
inc ebx
|
|
|
|
|
cmp al, 0x7F
|
|
|
|
|
ja @f
|
|
|
|
|
jmp .0
|
2021-02-02 06:13:00 +01:00
|
|
|
|
@@:
|
2021-09-22 16:50:17 +02:00
|
|
|
|
cmp al, 0xC0
|
|
|
|
|
jb .err
|
|
|
|
|
cmp al, 0xDF
|
|
|
|
|
ja @f
|
|
|
|
|
inc esi
|
|
|
|
|
jmp .0
|
2024-06-14 10:35:46 +02:00
|
|
|
|
|
2021-02-02 06:13:00 +01:00
|
|
|
|
@@:
|
2021-09-22 16:50:17 +02:00
|
|
|
|
cmp al, 0xEF
|
|
|
|
|
ja @f
|
|
|
|
|
inc esi
|
|
|
|
|
inc esi
|
|
|
|
|
jmp .0
|
2024-06-14 10:35:46 +02:00
|
|
|
|
|
2021-02-02 06:13:00 +01:00
|
|
|
|
@@:
|
2021-09-22 16:50:17 +02:00
|
|
|
|
cmp al, 0xF7
|
|
|
|
|
ja .err
|
|
|
|
|
add esi, 3
|
|
|
|
|
jmp .0
|
2024-06-14 10:35:46 +02:00
|
|
|
|
|
2021-02-02 06:13:00 +01:00
|
|
|
|
.ok:
|
2021-09-22 16:50:17 +02:00
|
|
|
|
mov eax, ebx
|
|
|
|
|
pop ebx esi
|
|
|
|
|
ret
|
2024-06-14 10:35:46 +02:00
|
|
|
|
|
2021-02-02 06:13:00 +01:00
|
|
|
|
.err:
|
2021-09-22 16:50:17 +02:00
|
|
|
|
xor eax, eax
|
|
|
|
|
pop ebx esi
|
|
|
|
|
ret
|
2021-02-02 06:13:00 +01:00
|
|
|
|
;-------------------------------------------------------------------------------
|
|
|
|
|
|
2006-01-03 10:43:31 +01:00
|
|
|
|
; DATA AREA
|
2021-02-02 06:13:00 +01:00
|
|
|
|
;-------------------------------------------------------------------------------
|
2021-09-22 16:50:17 +02:00
|
|
|
|
system_path db "/sys/lib/"
|
|
|
|
|
library_name db "box_lib.obj", 0
|
2009-10-12 12:51:22 +02:00
|
|
|
|
|
2021-02-02 06:13:00 +01:00
|
|
|
|
;-------------------------------------------------------------------------------
|
2013-06-02 07:26:24 +02:00
|
|
|
|
align 4
|
|
|
|
|
myimport:
|
2021-09-22 16:50:17 +02:00
|
|
|
|
edit_box_draw dd aEdit_box_draw
|
|
|
|
|
edit_box_key dd aEdit_box_key
|
|
|
|
|
edit_box_mouse dd aEdit_box_mouse
|
|
|
|
|
;version_ed dd aVersion_ed
|
2021-02-02 06:13:00 +01:00
|
|
|
|
|
2021-09-22 16:50:17 +02:00
|
|
|
|
init_checkbox dd aInit_checkbox
|
|
|
|
|
check_box_draw dd aCheck_box_draw
|
|
|
|
|
check_box_mouse dd aCheck_box_mouse
|
|
|
|
|
;version_ch dd aVersion_ch
|
2021-02-02 06:13:00 +01:00
|
|
|
|
|
2021-09-22 16:50:17 +02:00
|
|
|
|
;option_box_draw dd aOption_box_draw
|
|
|
|
|
;option_box_mouse dd aOption_box_mouse
|
|
|
|
|
;version_op dd aVersion_op
|
2021-02-02 06:13:00 +01:00
|
|
|
|
|
2021-09-22 16:50:17 +02:00
|
|
|
|
dd 0
|
|
|
|
|
dd 0
|
2021-02-02 06:13:00 +01:00
|
|
|
|
|
2021-09-22 16:50:17 +02:00
|
|
|
|
aEdit_box_draw db "edit_box",0
|
|
|
|
|
aEdit_box_key db "edit_box_key",0
|
|
|
|
|
aEdit_box_mouse db "edit_box_mouse",0
|
|
|
|
|
;aVersion_ed db "version_ed",0
|
2021-02-02 06:13:00 +01:00
|
|
|
|
|
2021-09-22 16:50:17 +02:00
|
|
|
|
aInit_checkbox db "init_checkbox2",0
|
|
|
|
|
aCheck_box_draw db "check_box_draw2",0
|
|
|
|
|
aCheck_box_mouse db "check_box_mouse2",0
|
|
|
|
|
;aVersion_ch db "version_ch",0
|
2021-02-02 06:13:00 +01:00
|
|
|
|
|
2021-09-22 16:50:17 +02:00
|
|
|
|
;aOption_box_draw db "option_box_draw",0
|
|
|
|
|
;aOption_box_mouse db "option_box_mouse",0
|
|
|
|
|
;aVersion_op db "version_op",0
|
2021-02-02 06:13:00 +01:00
|
|
|
|
;-------------------------------------------------------------------------------
|
|
|
|
|
align 4
|
|
|
|
|
check1 check_box2 CHECKBOX.X shl 16 + 12, CHECKBOX.Y shl 16 + 12, 6, 0x80D6DEE7, 0x4C5258, 0xB0000000, strings.checkbox_caption, ch_flag_top
|
2009-11-11 19:44:12 +01:00
|
|
|
|
check1_end:
|
2021-02-02 08:58:06 +01:00
|
|
|
|
edit1 edit_box EDITBOX.WIDTH, EDITBOX.X, EDITBOX.Y, 0xffffff, 0x6f9480, 0, 0xAABBCC, 0x10000000, start_application_c,\
|
2021-09-22 16:50:17 +02:00
|
|
|
|
start_application,mouse_dd,ed_focus,start_application_e,start_application_e
|
2009-10-23 16:36:21 +02:00
|
|
|
|
edit1_end:
|
2021-09-22 16:50:17 +02:00
|
|
|
|
list_start dd 0
|
2021-02-02 06:13:00 +01:00
|
|
|
|
;-------------------------------------------------------------------------------
|
2013-06-02 07:26:24 +02:00
|
|
|
|
align 4
|
2008-02-19 06:28:11 +01:00
|
|
|
|
sys_reboot:
|
2021-09-22 16:50:17 +02:00
|
|
|
|
dd SSF_START_APP
|
|
|
|
|
dd 0
|
|
|
|
|
dd 0
|
|
|
|
|
dd 0
|
|
|
|
|
dd 0
|
|
|
|
|
db "/sys/end",0
|
2021-02-02 06:13:00 +01:00
|
|
|
|
;-------------------------------------------------------------------------------
|
|
|
|
|
strings:
|
2024-06-03 01:34:02 +02:00
|
|
|
|
if lang eq de_DE
|
2021-09-22 16:50:17 +02:00
|
|
|
|
.window_caption utf8z "Prozesse v0.2.3 - [Ctrl+Alt+Del]"
|
2024-06-14 10:35:46 +02:00
|
|
|
|
|
2021-09-22 16:50:17 +02:00
|
|
|
|
.process_name utf8z "NAME/BEENDEN"
|
|
|
|
|
.ptid utf8z "PID/TID"
|
|
|
|
|
.cpu_usage_cycles utf8z "CPU(ZYKLEN)"
|
|
|
|
|
.cpu_usage_percent utf8z "CPU(%)"
|
|
|
|
|
.memory_usage utf8z "SPEICHER"
|
|
|
|
|
.window_stack_pos utf8z "W-STACK"
|
|
|
|
|
.window_position.x utf8z " WIN-X"
|
|
|
|
|
.window_position.y utf8z " WIN-Y"
|
2024-06-14 10:35:46 +02:00
|
|
|
|
|
2021-09-22 16:50:17 +02:00
|
|
|
|
.previous_page utf8z "SEITE ZURUECK"
|
|
|
|
|
.next_page utf8z "SEITE VOR"
|
|
|
|
|
.reboot utf8z "REBOOT SYSTEM"
|
|
|
|
|
.run utf8z "START"
|
2024-06-14 10:35:46 +02:00
|
|
|
|
|
2021-09-22 16:50:17 +02:00
|
|
|
|
.checkbox_caption utf8z "System"
|
2024-06-14 10:35:46 +02:00
|
|
|
|
|
2021-09-22 16:50:17 +02:00
|
|
|
|
.KB utf8z " KB"
|
|
|
|
|
.MB utf8z " MB"
|
|
|
|
|
.GB utf8z " GB"
|
2021-02-02 06:13:00 +01:00
|
|
|
|
;-------------------------------------------------------------------------------
|
2024-06-03 01:34:02 +02:00
|
|
|
|
else if lang eq et_EE
|
2021-09-22 16:50:17 +02:00
|
|
|
|
.window_caption utf8z "Protsessid v0.2.3 - [Ctrl+Alt+Del]"
|
2024-06-14 10:35:46 +02:00
|
|
|
|
|
2021-09-22 16:50:17 +02:00
|
|
|
|
.process_name utf8z "NIMI/LÕPETA"
|
|
|
|
|
.ptid utf8z "PID/TID"
|
|
|
|
|
.cpu_usage_cycles utf8z "CPU(TSÜKLID)"
|
|
|
|
|
.cpu_usage_percent utf8z "CPU(%)"
|
|
|
|
|
.memory_usage utf8z "MÄLU"
|
|
|
|
|
.window_stack_pos utf8z "W-PUHVER"
|
|
|
|
|
.window_position.x utf8z " WIN-X"
|
|
|
|
|
.window_position.y utf8z " WIN-Y"
|
2024-06-14 10:35:46 +02:00
|
|
|
|
|
2021-09-22 16:50:17 +02:00
|
|
|
|
.previous_page utf8z "EELMINE LEHT"
|
|
|
|
|
.next_page utf8z "JÄRGMINE LEHT"
|
|
|
|
|
.reboot utf8z "REBOODI SÜSTEEM"
|
|
|
|
|
.run utf8z "START"
|
2024-06-14 10:35:46 +02:00
|
|
|
|
|
2021-09-22 16:50:17 +02:00
|
|
|
|
.checkbox_caption utf8z "System"
|
2024-06-14 10:35:46 +02:00
|
|
|
|
|
2021-09-22 16:50:17 +02:00
|
|
|
|
.KB utf8z " KB"
|
|
|
|
|
.MB utf8z " MB"
|
|
|
|
|
.GB utf8z " GB"
|
2021-02-02 06:13:00 +01:00
|
|
|
|
;-------------------------------------------------------------------------------
|
2024-06-03 01:34:02 +02:00
|
|
|
|
else if lang eq ru_RU
|
2021-09-22 16:50:17 +02:00
|
|
|
|
.window_caption utf8z "Диспетчер процессов v0.2.3 - [Ctrl+Alt+Del]"
|
2024-06-14 10:35:46 +02:00
|
|
|
|
|
2021-09-22 16:50:17 +02:00
|
|
|
|
.process_name utf8z "ИМЯ/ЗАВЕРШИТЬ"
|
|
|
|
|
.ptid utf8z "PID/TID"
|
|
|
|
|
.cpu_usage_cycles utf8z "CPU(ТАКТЫ)"
|
|
|
|
|
.cpu_usage_percent utf8z "CPU(%)"
|
|
|
|
|
.memory_usage utf8z "ПАМЯТЬ"
|
|
|
|
|
.window_stack_pos utf8z "W-STACK"
|
|
|
|
|
.window_position.x utf8z " WIN-X"
|
|
|
|
|
.window_position.y utf8z " WIN-Y"
|
2024-06-14 10:35:46 +02:00
|
|
|
|
|
2021-09-22 16:50:17 +02:00
|
|
|
|
.previous_page utf8z "ПРЕД. СТР."
|
|
|
|
|
.next_page utf8z "СЛЕД. СТР."
|
|
|
|
|
.reboot utf8z "ПЕРЕЗАГРУЗКА"
|
|
|
|
|
.run utf8z "ЗАПУСК"
|
2024-06-14 10:35:46 +02:00
|
|
|
|
|
2021-09-22 16:50:17 +02:00
|
|
|
|
.checkbox_caption utf8z "Системные"
|
2024-06-14 10:35:46 +02:00
|
|
|
|
|
2021-09-22 16:50:17 +02:00
|
|
|
|
.KB utf8z " КБ"
|
|
|
|
|
.MB utf8z " МБ"
|
|
|
|
|
.GB utf8z " ГБ"
|
2021-02-02 06:13:00 +01:00
|
|
|
|
;-------------------------------------------------------------------------------
|
2024-06-03 01:34:02 +02:00
|
|
|
|
else if lang eq it_IT
|
2021-09-22 16:50:17 +02:00
|
|
|
|
.window_caption utf8z "Gestore processi v0.2.3 - [Ctrl+Alt+Del]"
|
2024-06-14 10:35:46 +02:00
|
|
|
|
|
2021-09-22 16:50:17 +02:00
|
|
|
|
.process_name utf8z "NOME-PROGRAMMA"
|
|
|
|
|
.ptid utf8z "PID/TID"
|
|
|
|
|
.cpu_usage_cycles utf8z "CPU(CICLI)"
|
|
|
|
|
.cpu_usage_percent utf8z "CPU(%)"
|
|
|
|
|
.memory_usage utf8z "MEMORY"
|
|
|
|
|
.window_stack_pos utf8z "W-STACK"
|
|
|
|
|
.window_position.x utf8z " WIN-X"
|
|
|
|
|
.window_position.y utf8z " WIN-Y"
|
2024-06-14 10:35:46 +02:00
|
|
|
|
|
2021-09-22 16:50:17 +02:00
|
|
|
|
.previous_page utf8z "INDIETRO"
|
|
|
|
|
.next_page utf8z "AVANTI"
|
|
|
|
|
.reboot utf8z "RIAVVIA SISTEMA"
|
|
|
|
|
.run utf8z "START"
|
2024-06-14 10:35:46 +02:00
|
|
|
|
|
2021-09-22 16:50:17 +02:00
|
|
|
|
.checkbox_caption utf8z "System"
|
2024-06-14 10:35:46 +02:00
|
|
|
|
|
2021-09-22 16:50:17 +02:00
|
|
|
|
.KB utf8z " KB"
|
|
|
|
|
.MB utf8z " MB"
|
|
|
|
|
.GB utf8z " GB"
|
2021-02-02 06:13:00 +01:00
|
|
|
|
;-------------------------------------------------------------------------------
|
2024-06-14 10:35:46 +02:00
|
|
|
|
else ; Default to en_US
|
2021-09-22 16:50:17 +02:00
|
|
|
|
.window_caption utf8z "Process manager v0.2.3 - [Ctrl+Alt+Del]"
|
2024-06-14 10:35:46 +02:00
|
|
|
|
|
2021-09-22 16:50:17 +02:00
|
|
|
|
.process_name utf8z "NAME/TERMINATE"
|
|
|
|
|
.ptid utf8z "PID/TID"
|
|
|
|
|
.cpu_usage_cycles utf8z "CPU(CYCLES)"
|
|
|
|
|
.cpu_usage_percent utf8z "CPU(%)"
|
|
|
|
|
.memory_usage utf8z "MEMORY"
|
|
|
|
|
.window_stack_pos utf8z "W-STACK"
|
|
|
|
|
.window_position.x utf8z " WIN-X"
|
|
|
|
|
.window_position.y utf8z " WIN-Y"
|
2024-06-14 10:35:46 +02:00
|
|
|
|
|
|
|
|
|
|
2021-09-22 16:50:17 +02:00
|
|
|
|
.previous_page utf8z "PREV PAGE"
|
|
|
|
|
.next_page utf8z "NEXT PAGE"
|
|
|
|
|
.reboot utf8z "REBOOT SYSTEM"
|
|
|
|
|
.run utf8z "RUN"
|
2024-06-14 10:35:46 +02:00
|
|
|
|
|
2021-09-22 16:50:17 +02:00
|
|
|
|
.checkbox_caption utf8z "System"
|
2024-06-14 10:35:46 +02:00
|
|
|
|
|
2021-09-22 16:50:17 +02:00
|
|
|
|
.KB utf8z " KB"
|
|
|
|
|
.MB utf8z " MB"
|
|
|
|
|
.GB utf8z " GB"
|
mv, gifview, jpegview: modified to use function 70
tinypad2: modified for new sysxtree
kernel, mv, board, calendar, cmd, copy2, cpu, end, icon, mhc, pcidev:
german translation from derPENGUIN
git-svn-id: svn://kolibrios.org@135 a494cfbc-eb01-0410-851d-a64ba20cac60
2006-08-25 15:06:57 +02:00
|
|
|
|
end if
|
2021-02-02 06:13:00 +01:00
|
|
|
|
;-------------------------------------------------------------------------------
|
2014-05-30 14:46:16 +02:00
|
|
|
|
align 4
|
|
|
|
|
tinfo:
|
2021-09-22 16:50:17 +02:00
|
|
|
|
dd SSF_START_APP
|
|
|
|
|
dd 0
|
|
|
|
|
.params dd .params_buf
|
|
|
|
|
dd 0
|
|
|
|
|
dd 0
|
|
|
|
|
db 0
|
|
|
|
|
.file_path dd sz_tinfo_file_path
|
2014-05-30 14:46:16 +02:00
|
|
|
|
align 4
|
|
|
|
|
.params_buf:
|
2021-09-22 16:50:17 +02:00
|
|
|
|
times 11 db 0 ; at now 4 bytes will be enough, but may be in the future not
|
2014-05-30 14:46:16 +02:00
|
|
|
|
align 4
|
2021-09-22 16:50:17 +02:00
|
|
|
|
sz_tinfo_file_path db "/sys/tinfo",0
|
2021-02-02 06:13:00 +01:00
|
|
|
|
;-------------------------------------------------------------------------------
|
2013-06-02 07:26:24 +02:00
|
|
|
|
align 4
|
2012-04-04 03:08:20 +02:00
|
|
|
|
file_start:
|
2021-09-22 16:50:17 +02:00
|
|
|
|
dd SSF_START_APP
|
|
|
|
|
dd 0
|
|
|
|
|
dd 0
|
|
|
|
|
dd 0
|
|
|
|
|
dd 0
|
|
|
|
|
start_application: db "/sys/LAUNCHER",0
|
2009-10-12 12:51:22 +02:00
|
|
|
|
start_application_e=$-start_application-1
|
2021-09-22 16:50:17 +02:00
|
|
|
|
; times 60 db 0
|
|
|
|
|
rb 60
|
2009-10-12 12:51:22 +02:00
|
|
|
|
start_application_c=$-start_application-1
|
2021-02-02 06:13:00 +01:00
|
|
|
|
;-------------------------------------------------------------------------------
|
2012-04-04 03:08:20 +02:00
|
|
|
|
IM_END:
|
2021-02-02 06:13:00 +01:00
|
|
|
|
;-------------------------------------------------------------------------------
|
2013-06-02 07:26:24 +02:00
|
|
|
|
align 4
|
2009-10-23 16:36:21 +02:00
|
|
|
|
sc system_colors
|
2021-09-22 16:50:17 +02:00
|
|
|
|
winxpos rd 1
|
|
|
|
|
winypos rd 1
|
|
|
|
|
mouse_dd rd 1
|
|
|
|
|
cpu_percent rd 1
|
|
|
|
|
list_add rd 1
|
|
|
|
|
curposy rd 1
|
|
|
|
|
index rd 1
|
|
|
|
|
tasklist rd DISPLAY_PROCESSES
|
|
|
|
|
time_counter rd 1
|
|
|
|
|
|
|
|
|
|
window_status rd 1
|
|
|
|
|
client_area_x_size rd 1
|
|
|
|
|
client_area_y_size rd 1
|
|
|
|
|
bar_bacground_color rd 1
|
|
|
|
|
btn_bacground_color rd 1
|
|
|
|
|
draw_window_flag rd 1
|
2021-02-02 06:13:00 +01:00
|
|
|
|
;-------------------------------------------------------------------------------
|
2013-06-02 07:26:24 +02:00
|
|
|
|
align 4
|
2012-04-04 03:08:20 +02:00
|
|
|
|
library_path:
|
2006-01-03 10:43:31 +01:00
|
|
|
|
process_info_buffer process_information
|
2021-02-02 06:13:00 +01:00
|
|
|
|
;-------------------------------------------------------------------------------
|
2013-06-02 07:26:24 +02:00
|
|
|
|
align 4
|
2012-04-04 03:08:20 +02:00
|
|
|
|
cur_dir_path:
|
2021-09-22 16:50:17 +02:00
|
|
|
|
rb 1024
|
|
|
|
|
rb 1024
|
2012-04-04 03:08:20 +02:00
|
|
|
|
stack_area:
|
2006-01-03 10:43:31 +01:00
|
|
|
|
U_END:
|