Subversion Repositories Kolibri OS

Rev

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