Subversion Repositories Kolibri OS

Rev

Rev 2583 | Rev 3408 | Go to most recent revision | Blame | Compare with Previous | Last modification | View Log | Download | RSS feed

  1. ;
  2. ;   CPU -process Manager
  3. ;
  4. ;------------------------------------------------------------------------------
  5. ; version:      1.80
  6. ; last update:  07/04/2012
  7. ; changed by:   Marat Zakiyanov aka Mario79, aka Mario
  8. ; changes:      Complete elimination of flicker.
  9. ;               Using f.0 C = 1 - don't fill working area on window draw.
  10. ;               Increasing the size of buttons and a bright color.
  11. ;               Processing "window is rolled up" and "window is minimized"
  12. ;------------------------------------------------------------------------------
  13. ; version:      1.70
  14. ; last update:  04/04/2012
  15. ; changed by:   Marat Zakiyanov aka Mario79, aka Mario
  16. ; changes:      Code refactoring and optimization.
  17. ;               Added russian language support.
  18. ;               Fix - processes information showing  not been updated during
  19. ;               the processing of mouse events.
  20. ;------------------------------------------------------------------------------
  21. ; Many fix's and changes created by:
  22. ;               Diamond, Heavyiron, SPraid, <Lrz>,
  23. ;               Leency, IgorA, kaitz
  24. ;---------------------------------------------------------------------
  25. ;   integrated with load_lib.obj by <Lrz>
  26. ;---------------------------------------------------------------------
  27. ;   additions by M.Lisovin lisovin@26.ru
  28. ;---------------------------------------------------------------------
  29. ;   original author - VTurjanmaa
  30. ;------------------------------------------------------------------------------
  31.         use32
  32.         org 0x0
  33.         db 'MENUET01'           ; 8 byte id
  34.         dd 0x01                 ; header version
  35.         dd START                ; start of code
  36.         dd IM_END               ; size of image
  37.         dd U_END                ; memory for app
  38.         dd stack_area           ; esp
  39.         dd 0x0                  ; boot parameters
  40.         dd 0x0                  ; path
  41. ;------------------------------------------------------------------------------
  42. include 'lang.inc'
  43. include '../../../macros.inc'
  44. include '../../../develop/libraries/box_lib/trunk/box_lib.mac'
  45. include '../../../develop/libraries/box_lib/load_lib.mac'
  46. ;------------------------------------------------------------------------------
  47. display_processes=24    ;32             ; number of processes to show
  48. window_x_size=524
  49. window_y_size=430
  50. ;------------------------------------------------------------------------------
  51. @use_library    ;use load lib macros
  52. ;------------------------------------------------------------------------------
  53. START:                          ; start of execution
  54.         mcall   68,11
  55. sys_load_library  library_name, cur_dir_path, library_path, system_path, \
  56. err_message_found_lib, head_f_l, myimport, err_message_import, head_f_i
  57.         inc     eax
  58.         jz      close
  59. ;------------------------------------------------------------------------------
  60.         mcall   40,0x27 ;set event
  61. ;------------------------------------------------------------------------------
  62. ;set window size and position for 0 function
  63. ;to [winxpos] and [winypos] variables
  64. ;get screen size
  65.         mcall   14
  66.         mov     ebx,eax
  67. ;calculate (x_screen-window_x_size)/2    
  68.         shr     ebx,16+1
  69.         sub     ebx,window_x_size/2
  70.         shl     ebx,16
  71.         mov     bx,window_x_size
  72. ;winxpos=xcoord*65536+xsize    
  73.         mov     [winxpos],ebx
  74. ;calculate (y_screen-window_y_size)/2    
  75.         and     eax,0xffff
  76.         shr     eax,1
  77.         sub     eax,window_y_size/2
  78.         shl     eax,16
  79.         mov     ax,window_y_size
  80. ;winypos=ycoord*65536+ysize    
  81.         mov     [winypos],eax
  82. ;------------------------------------------------------------------------------
  83.         init_checkboxes2 check1,check1_end
  84.         mcall   48,3,sc,40
  85.         edit_boxes_set_sys_color edit1,edit1_end,sc             ;set color
  86.         check_boxes_set_sys_color2 check1,check1_end,sc ;set color
  87. ;------------------------------------------------------------------------------
  88. align 4  
  89. ;main loop when process name isn't edited.    
  90. red:   
  91.         call    draw_window             ; redraw all window
  92. ;------------------------------------------------------------------------------
  93. align 4
  94. still:
  95.         mcall   23,100          ; wait here for event 1 sec.
  96.  
  97.         dec     eax                   ; redraw request ?
  98.         jz      red
  99.  
  100.         dec     eax                   ; key in buffer ?
  101.         jz      key
  102.  
  103.         dec     eax                   ; button in buffer ?
  104.         jz      button
  105.  
  106.         push    dword edit1
  107.         call    [edit_box_mouse]
  108.        
  109.         push    dword[check1.flags]
  110.        
  111.         push    dword check1
  112.         call    [check_box_mouse]
  113.        
  114.         pop     eax
  115.        
  116.         cmp     eax, dword[check1.flags]
  117.         jz      still_end
  118.        
  119.         push    dword check1
  120.         call    [check_box_draw]
  121. ;--------------------------------------
  122. align 4
  123. show_process_info_1:   
  124.         mcall   26,9
  125.         add     eax,100
  126.         mov     [time_counter],eax
  127.  
  128.         call    show_process_info       ; draw new state of processes
  129.         jmp     still
  130. ;------------------------------------------------------------------------------
  131. align 4
  132. still_end:
  133.         mcall   26,9
  134.         cmp     [time_counter],eax
  135.         ja      still
  136.  
  137.         add     eax,100
  138.         mov     [time_counter],eax
  139.  
  140.         call    show_process_info       ; draw new state of processes
  141.         jmp     still
  142. ;------------------------------------------------------------------------------
  143. align 4
  144. key:                            ; key
  145.         mcall   2
  146.  
  147.         cmp     ah,184          ; PageUp
  148.         jz      pgdn
  149.  
  150.         cmp     ah,183
  151.         jz      pgup                    ; PageDown
  152.  
  153.         cmp     ah,27
  154.         jz      close                   ; Esc
  155.  
  156.         push    dword edit1
  157.         call    [edit_box_key]
  158.                                 ; Check ENTER with ed_focus edit_box
  159.         lea     edi,[edit1]
  160.         test    word ed_flags,ed_focus
  161.         jz      still_end
  162.  
  163.         sub     ah,13                   ; ENTER?
  164.         jz      program_start           ; RUN a program
  165.  
  166.         jmp     still
  167. ;------------------------------------------------------------------------------
  168. align 4
  169. button:                
  170. ; get button id  
  171.         mcall   17
  172.         shr     eax,8                  
  173. ;id in [10,50] corresponds to terminate buttons.
  174.         cmp     eax,10
  175.         jb      noterm         
  176.  
  177.         cmp     eax,50
  178.         jg      noterm
  179. ;calculate button index        
  180.         sub     eax,11
  181. ;calculate process slot    
  182.         mov     ecx,[tasklist+4*eax]
  183. ;ignore empty buttons
  184.         test    ecx,ecx
  185.         jle     still_end
  186. ;terminate application    
  187.         mcall   18,2
  188.         jmp     show_process_info_1
  189. ;--------------------------------------
  190. align 4
  191. noterm:
  192. ;special buttons
  193.         dec     eax
  194.         jz      close
  195.  
  196.         sub     eax,50
  197.         jz      pgdn      ;51
  198.  
  199.         dec     eax
  200.         jz      pgup      ;52
  201.  
  202.         dec     eax
  203.         jz      program_start   ;53
  204.  
  205.         dec     eax
  206.         jz      reboot  ;54
  207.  
  208.         jmp     still_end
  209. ;buttons handlers    
  210. ;------------------------------------------------------------------------------
  211. align 4
  212. pgdn:
  213.         sub     [list_start],display_processes
  214.         jge     show_process_info_1  
  215.         mov     [list_start],0
  216.         jmp     show_process_info_1
  217. ;------------------------------------------------------------------------------
  218. align 4
  219. pgup:
  220.         mov     eax,[list_add]  ;maximal displayed process slot
  221.         mov     [list_start],eax
  222.         jmp     show_process_info_1
  223. ;------------------------------------------------------------------------------
  224. align 4    
  225. program_start:    
  226.         mcall   70,file_start
  227.         jmp     show_process_info_1
  228. ;------------------------------------------------------------------------------
  229. align 4
  230. reboot:    
  231.         mcall   70,sys_reboot
  232. ;close program if we going to reboot
  233. ;------------------------------------------------------------------------------
  234. align 4
  235. close:
  236.         or      eax,-1          ; close this program
  237.         mcall
  238. ;------------------------------------------------------------------------------
  239. align 4
  240. draw_empty_slot:       
  241.         cmp     [draw_window_flag],1
  242.         je      @f
  243.         mov     ecx,[curposy]
  244.         shl     ecx,16
  245.         mov     cx,10   ; button height
  246.         push    ecx
  247.         add     ecx,3 shl 16
  248.         mcall   13,<11,95>,,[btn_bacground_color]
  249.         pop     ecx
  250.        
  251.         mcall   13,<111,393>,,[bar_bacground_color]
  252. ;--------------------------------------
  253. align 4
  254. @@:
  255.         ret
  256. ;------------------------------------------------------------------------------
  257. align 4
  258. draw_next_process:
  259. ;input:
  260. ;  edi - current slot
  261. ;  [curposy] - y position
  262. ;output:
  263. ;  edi - next slot (or -1 if no next slot)
  264. ;registers corrupted!
  265. ;delete old button
  266.         cmp     [draw_window_flag],0
  267.         je      @f
  268.         mov     edx,[index]
  269.         add     edx,(1 shl 31)+11
  270.         mcall   8
  271. ;--------------------------------------
  272. align 4
  273. @@:
  274. ;create terminate process button
  275.         mov     ecx,[curposy]
  276.         shl     ecx,16
  277.         mov     cx,13   ; button height
  278.         mov     edx,[index]
  279.         add     edx,11
  280.         mov     esi,0xccddee    ; 0xaabbcc
  281. ;contrast    
  282.         test    dword [index],1
  283.         jz      .change_color_button
  284.         mov     esi,0xaabbcc    ; 0x8899aa
  285. ;--------------------------------------
  286. align 4
  287. .change_color_button:
  288.         cmp     [draw_window_flag],0
  289.         je      @f
  290.         mcall   8,<10,99>
  291. ;--------------------------------------
  292. align 4
  293. @@:
  294.         mov     [btn_bacground_color],esi
  295. ;draw background for proccess information
  296. ; ecx was already set
  297.         mov     edx,0xddffdd    ; 0x88ff88
  298. ;contrast
  299.         test    dword [index],1
  300.         jz      .change_color_info
  301.         mov     edx,0xffffff    ; 0xddffdd
  302. ;--------------------------------------
  303. align 4
  304. .change_color_info:
  305.         inc     cx
  306.         cmp     [draw_window_flag],0
  307.         je      @f
  308.         mcall   13,<110,395>
  309. ;--------------------------------------
  310. align 4
  311. @@:
  312.         mov     [bar_bacground_color],edx
  313. ;nothing else should be done
  314. ;if there is no process for this button    
  315.         cmp     edi,-1
  316.         jne     .return_1
  317.  
  318.         call    draw_empty_slot
  319.         or      edi,-1
  320.         jmp     .ret
  321. ;--------------------------------------
  322. align 4
  323. .return_1:
  324. ;find process
  325.         inc     edi
  326. ;more comfortable register for next loop    
  327.         mov     ecx,edi
  328. ;precacluate pointer to process buffer    
  329.         mov     ebx,process_info_buffer
  330. ;--------------------------------------
  331. align 4
  332. .find_loop:
  333.         cmp     ecx,256
  334.         jge     .no_processes
  335. ;load process information in buffer
  336.         mcall   9
  337. ;if current slot greater than maximal slot,
  338. ;there is no more proccesses.    
  339.         cmp     ecx,eax
  340.         jg      .no_processes
  341. ;if slot state is equal to 9, it is empty.    
  342.         cmp     [process_info_buffer+process_information.slot_state],9
  343.         jnz     .process_found
  344.    
  345.         inc     ecx
  346.         jmp     .find_loop
  347. ;--------------------------------------
  348. align 4
  349. .no_processes:
  350.         call    draw_empty_slot
  351.         or      edi,-1
  352.         ret
  353. ;--------------------------------------
  354. align 4
  355. .process_found:
  356. ;check on/off check box
  357.         push    edi
  358.         lea     edi,[check1]
  359.         test    dword ch_flags,ch_flag_en
  360.         pop     edi
  361.         jnz     @f
  362.  
  363.         cmp     dword [process_info_buffer+10],'ICON'
  364.         jz      .return_1
  365.  
  366.         cmp     dword [process_info_buffer+10],'OS/I'
  367.         jz      .return_1
  368.  
  369.         cmp     byte [process_info_buffer+10],'@'
  370.         jz      .return_1
  371. ;--------------------------------------
  372. align 4
  373. @@:
  374.         mov     edi,ecx
  375.         mov     [list_add],ecx
  376. ;get processor cpeed    
  377. ;for percent calculating
  378.         mcall   18,5
  379.         xor     edx,edx
  380.         mov     ebx,100
  381.         div     ebx
  382. ;eax = number of operation for 1% now
  383. ;calculate process cpu usage percent
  384.         mov     ebx,eax
  385.         mov     eax,[process_info_buffer+process_information.cpu_usage]
  386. ;       cdq
  387.         xor     edx,edx ; for CPU more 2 GHz - mike.dld
  388.         div     ebx
  389.         mov     [cpu_percent],eax
  390. ;set text color to display process information
  391. ;([tcolor] variable)
  392. ;0%      : black    
  393. ;1-80%   : green
  394. ;81-100% : red
  395.         test    eax,eax
  396.         jnz     .no_black
  397.  
  398.         mov     [tcolor],eax
  399.         jmp     .color_set
  400. ;--------------------------------------
  401. align 4
  402. .no_black:  
  403.         cmp     eax,80
  404.         ja      .no_green
  405.  
  406.         mov     dword [tcolor],0x107a30
  407.         jmp     .color_set
  408. ;--------------------------------------
  409. align 4
  410. .no_green:
  411.         mov     dword [tcolor],0xac0000
  412. ;--------------------------------------
  413. align 4
  414. .color_set:
  415. ;show slot number
  416. ;ecx haven't changed since .process_found    
  417.         push    edi
  418.         mov     edx,[curposy]
  419.         add     edx,15*65536+3
  420.         mov     esi,[tcolor]
  421.         and     esi,0xffffff
  422.         or      esi,0x40000000
  423.         mcall   47,<2,256>,,,,[btn_bacground_color]
  424. ;show process name
  425.         mov     ebx,[curposy]
  426.         add     ebx,40*65536+3
  427.         mov     ecx,[tcolor]
  428.         and     ecx,0xffffff
  429.         or      ecx,0x40000000
  430.         mcall   4,,,process_info_buffer.process_name,11,[btn_bacground_color]
  431. ;show pid
  432.         mov     edx,[curposy]
  433.         add     edx,125*65536+3
  434.         mov     esi,[tcolor]
  435.         and     esi,0xffffff
  436.         or      esi,0x40000000
  437.         mcall   47,<8,256>,[process_info_buffer.PID],,,[bar_bacground_color]
  438. ;show cpu usage
  439.         add     edx,60*65536
  440.         mcall   ,,[process_info_buffer.cpu_usage]
  441. ;show cpu percent
  442.         add     edx,60*65536
  443.         mcall   ,<3,0>,[cpu_percent]
  444. ;show memory start - obsolete
  445.         add     edx,30*65536
  446.         mcall   ,<8,256>,[process_info_buffer.memory_start]
  447. ;show memory usage
  448.         mov     ecx,[process_info_buffer.used_memory]
  449.         inc     ecx
  450.         add     edx,60*65536
  451.         mcall
  452. ;show window stack and value
  453.         add     edx,60*65536
  454.         mcall   ,,dword [process_info_buffer.window_stack_position]
  455. ;show window xy size
  456.         mov     ecx,[process_info_buffer.box.left]
  457.         shl     ecx,16
  458.         add     ecx,[process_info_buffer.box.top]
  459.         add     edx,60*65536
  460.         mcall
  461.         pop     edi
  462. ;--------------------------------------
  463. align 4
  464. .ret:
  465. ;build index->slot map for terminating processes.
  466.         mov     eax,[index]
  467.         mov     [tasklist+4*eax],edi         
  468.         ret
  469. ;------------------------------------------------------------------------------
  470. align 4
  471. f11:
  472. ;full update  
  473.         push    edi
  474.         call    draw_window
  475.         pop     edi
  476. ;------------------------------------------------------------------------------
  477. ;   *********************************************
  478. ;   *******  WINDOW DEFINITIONS AND DRAW ********
  479. ;   *********************************************
  480. align 4
  481. draw_window:
  482.         mcall   12, 1                  
  483. ; DRAW WINDOW
  484.         xor     eax,eax                         ; function 0 : define and draw window
  485.         xor     esi,esi
  486.         mcall   ,[winxpos],[winypos],0x74ffffff,,title  ;0x34ddffdd
  487.  
  488.         mcall   9,process_info_buffer,-1
  489.        
  490.         mov     eax,[ebx+70]
  491.         mov     [window_status],eax
  492.         test    [window_status],100b            ; window is rolled up
  493.         jnz     .exit
  494.  
  495.         test    [window_status],10b             ; window is minimized to panel
  496.         jnz     .exit
  497.  
  498.         mov     eax,[ebx+62]
  499.         inc     eax
  500.         mov     [client_area_x_size],eax
  501.         mov     eax,[ebx+66]
  502.         inc     eax
  503.         mov     [client_area_y_size],eax
  504.  
  505.         mov     ebx,[client_area_x_size]
  506.         mcall   13,,<0,20>,0xffffff
  507. ; function 4 : write text to window
  508.         xor     ecx,ecx
  509.         mcall   4,<17,8>,,text,text_len
  510.  
  511.         mcall   13,<0,10>,<20,336>,0xffffff
  512.        
  513.         mov     ebx,[client_area_x_size]
  514.         sub     ebx,10+100+395
  515.         add     ebx,(10+100+395) shl 16
  516.         mcall
  517.        
  518.         mcall   26,9
  519.         add     eax,100
  520.         mov     [time_counter],eax
  521.  
  522.         mov     [draw_window_flag],1
  523.         call    show_process_info
  524.         mov     [draw_window_flag],0
  525.        
  526.         mov     ebx,[client_area_x_size]
  527.         mov     ecx,[client_area_y_size]
  528.         sub     ecx,20+336
  529.         add     ecx,(20+336) shl 16
  530.         mcall   13,,,0xffffff
  531.  
  532.         push    dword edit1
  533.         call    [edit_box_draw]
  534.  
  535.         push    dword check1
  536.         call    [check_box_draw]
  537.        
  538. ; previous page button
  539.         mcall   8,<25,96>,<361,14>,51,0xccddee  ;0xaabbcc
  540. ; next page button  52
  541.         inc     edx
  542.         mcall   ,<125,96>
  543. ; ">" (text enter) button
  544.         add     ecx,20 shl 16
  545. ; run button 53
  546.         inc     edx
  547.         mcall   ,<456,50>
  548. ; reboot button    
  549.         sub     ebx,120*65536              
  550.         add     ebx,60
  551.         sub     ecx,20 shl 16
  552.         inc     edx
  553.         mcall
  554. ;"PREV PAGE", "NEXT PAGE" and "REBOOT" labels
  555.         xor     ecx,ecx
  556.         mcall   4,<45,365>,,tbts,tbte-tbts
  557. ;"RUN" labels
  558.         mcall   ,<464,385>,,tbts_3,tbte_2-tbts_3
  559. ;print application name in text box
  560. ;--------------------------------------
  561. align 4
  562. .exit:
  563.         mcall   12, 2
  564.         ret
  565. ;------------------------------------------------------------------------------
  566. align 4
  567. show_process_info:
  568.         test    [window_status],100b            ; window is rolled up
  569.         jnz     .exit
  570.  
  571.         test    [window_status],10b             ; window is minimized to panel
  572.         jnz     .exit
  573.  
  574.         mov     edi,[list_start]
  575.         mov     [list_add],edi
  576.         mov     dword [index],0
  577.         mov     dword [curposy],20
  578. ;--------------------------------------
  579. align 4
  580. .loop_draw:
  581.         call    draw_next_process
  582.         inc     dword [index]
  583.         add     dword [curposy],14
  584.         cmp     [index],display_processes
  585.         jl      .loop_draw
  586. ;--------------------------------------
  587. align 4
  588. .exit:
  589.         ret
  590. ;------------------------------------------------------------------------------
  591. ; DATA AREA
  592. ;------------------------------------------------------------------------------
  593. system_path      db '/sys/lib/'
  594. library_name     db 'box_lib.obj',0
  595. ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
  596.  
  597. err_message_found_lib   db 'Sorry I cannot load library box_lib.obj',0
  598. head_f_i:
  599. head_f_l        db 'System error',0
  600. err_message_import      db 'Error on load import library box_lib.obj',0
  601. ;------------------------------------------------------------------------------
  602. align 4
  603. myimport:  
  604. edit_box_draw           dd aEdit_box_draw
  605. edit_box_key            dd aEdit_box_key
  606. edit_box_mouse          dd aEdit_box_mouse
  607. ;version_ed             dd aVersion_ed
  608.  
  609. init_checkbox           dd aInit_checkbox
  610. check_box_draw          dd aCheck_box_draw
  611. check_box_mouse         dd aCheck_box_mouse
  612. ;version_ch             dd aVersion_ch
  613.  
  614. ;option_box_draw        dd aOption_box_draw
  615. ;option_box_mouse       dd aOption_box_mouse
  616. ;version_op             dd aVersion_op
  617.  
  618.                 dd 0
  619.                 dd 0
  620.  
  621. aEdit_box_draw          db 'edit_box',0
  622. aEdit_box_key           db 'edit_box_key',0
  623. aEdit_box_mouse         db 'edit_box_mouse',0
  624. ;aVersion_ed            db 'version_ed',0
  625.  
  626. aInit_checkbox          db 'init_checkbox2',0
  627. aCheck_box_draw         db 'check_box_draw2',0
  628. aCheck_box_mouse        db 'check_box_mouse2',0
  629. ;aVersion_ch            db 'version_ch',0
  630.  
  631. ;aOption_box_draw       db 'option_box_draw',0
  632. ;aOption_box_mouse      db 'option_box_mouse',0
  633. ;aVersion_op            db 'version_op',0
  634. ;------------------------------------------------------------------------------
  635. align 4
  636. check1 check_box2 (10 shl 16)+11,(383 shl 16)+11,6, 0x80AABBCC,0,0,check_text, ch_flag_bottom ;ch_flag_en
  637. check1_end:
  638. edit1 edit_box 350,95,381,0xffffff,0x6f9480,0,0xAABBCC,0,start_application_c,\
  639.    start_application,mouse_dd,ed_focus,start_application_e,start_application_e
  640. edit1_end:
  641. list_start  dd 0
  642. ;------------------------------------------------------------------------------
  643. align 4
  644. sys_reboot:
  645.             dd 7
  646.             dd 0
  647.             dd 0
  648.             dd 0
  649.             dd 0
  650.             db '/sys/end',0
  651. ;------------------------------------------------------------------------------
  652. if lang eq de
  653. text:
  654.         db 'NAME/BEENDEN        PID     CPU-LAST   % '
  655.         db 'SPEICHER START/NUTZUNG  W-STACK   W-SIZE'
  656. text_len = $-text
  657.  
  658. tbts:   db 'SEITE ZURUECK     SEITE VOR                        REBOOT SYSTEM'
  659. tbte:
  660. tbts_3  db 'START'
  661. tbte_2:
  662. check_text      db '@ on/off',0
  663. title   db 'Prozesse  - Ctrl/Alt/Del',0
  664. ;--------------------------------------
  665. else if lang eq et
  666. text:
  667.         db 'NIMI/LÕPETA         PID    CPU-KASUTUS %   '
  668.         db 'MÄLU ALGUS/KASUTUS  W-PUHVER  W-SUURUS'
  669. text_len = $-text
  670.  
  671. tbts:   db 'EELMINE LEHT   JÄRGMINE LEHT                     REBOODI SÜSTEEM'
  672. tbte:
  673. tbts_3  db 'START'
  674. tbte_2:
  675. check_text      db '@ on/off',0
  676. title   db 'Protsessid - Ctrl/Alt/Del'
  677. ;--------------------------------------
  678. else if lang eq ru
  679. text:
  680.         db 'ˆŒŸ/‡€‚…˜ˆ’œ      PID     CPU-‡€ƒ“‡Š€ %  '
  681.         db '€ŒŸ’œ €—€‹Ž/‚‘…ƒŽ  W-STACK    W-SIZE'
  682. text_len = $-text
  683.  
  684. tbts:   db '…„.‘’        ‘‹…„.‘’                          ……‡€ƒ“‡Š€'
  685. tbte:
  686. tbts_3  db '‡€“‘Š'
  687. tbte_2:
  688. check_text      db '@ ¢ª«/¢ëª«',0
  689. title   db '„¨á¯¥âç¥à ¯à®æ¥áᮢ - Ctrl/Alt/Del',0
  690. ;--------------------------------------
  691. else
  692. text:
  693.         db 'NAME/TERMINATE      PID     CPU-USAGE  %   '
  694.         db 'MEMORY START/USAGE  W-STACK    W-SIZE'
  695. text_len = $-text
  696.  
  697. tbts:   db 'PREV PAGE       NEXT PAGE                         REBOOT SYSTEM'
  698. tbte:
  699. tbts_3  db ' RUN'
  700. tbte_2:
  701. check_text      db '@ on/off',0
  702. title   db 'Process manager - Ctrl/Alt/Del',0
  703.  
  704. end if
  705. ;------------------------------------------------------------------------------
  706. align 4
  707. file_start:
  708.         dd 7
  709.         dd 0
  710.         dd 0
  711.         dd 0
  712.         dd 0
  713. start_application: db '/sys/LAUNCHER',0
  714. start_application_e=$-start_application-1
  715. ;                   times 60 db 0
  716.         rb 60
  717. start_application_c=$-start_application-1
  718. ;------------------------------------------------------------------------------
  719. IM_END:
  720. ;------------------------------------------------------------------------------
  721. align 4
  722. sc system_colors
  723. winxpos         rd 1
  724. winypos         rd 1
  725. mouse_dd        rd 1
  726. cpu_percent     rd 1
  727. tcolor          rd 1
  728. list_add        rd 1
  729. curposy         rd 1
  730. index           rd 1
  731. tasklist        rd display_processes
  732. time_counter    rd 1
  733.  
  734. window_status           rd 1
  735. client_area_x_size      rd 1
  736. client_area_y_size      rd 1
  737. bar_bacground_color     rd 1
  738. btn_bacground_color     rd 1
  739. draw_window_flag        rd 1
  740. ;------------------------------------------------------------------------------
  741. align 4
  742. library_path:
  743. process_info_buffer process_information
  744. ;------------------------------------------------------------------------------
  745. align 4
  746. cur_dir_path:
  747.         rb 1024
  748. ;------------------------------------------------------------------------------
  749. align 4
  750.         rb 1024
  751. stack_area:
  752. ;------------------------------------------------------------------------------
  753. U_END:
  754. ;------------------------------------------------------------------------------
  755.