Subversion Repositories Kolibri OS

Rev

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

Rev 1203 Rev 1205
Line 1... Line 1...
1
;
1
;
2
;   PROCESS MANAGEMENT
2
;   PROCESS MANAGEMENT
3
;
3
;
4
;   VTurjanmaa
4
;   VTurjanmaa
5
;   additions by M.Lisovin lisovin@26.ru
5
;   additions by M.Lisovin lisovin@26.ru
-
 
6
;   integrated with load_lib.obj by 
6
;   Compile with FASM for Menuet
7
;   Compile with FASM for Menuet
7
;
8
;
Line 8... Line 9...
8
 
9
 
9
  use32
10
  use32
10
  org    0x0
11
  org    0x0
-
 
12
STACK_SIZE=1024
-
 
13
offset_y=22
11
STACK_SIZE=1024
14
offset_x=5
12
  db     'MENUET01'              ; 8 byte id
15
  db     'MENUET01'              ; 8 byte id
13
  dd     0x01                    ; header version
16
  dd     0x01                    ; header version
14
  dd     START                   ; start of code
17
  dd     START                   ; start of code
15
  dd     I_END                   ; size of image
18
  dd     I_END                   ; size of image
16
  dd     U_END+STACK_SIZE        ; memory for app
19
  dd     U_END+STACK_SIZE        ; memory for app
17
  dd     U_END+STACK_SIZE        ; esp
20
  dd     U_END+STACK_SIZE        ; esp
Line 18... Line 21...
18
  dd     0x0 , 0x0               ; I_Param , I_Icon
21
  dd     0x0 , 0x0               ; I_Param , I_Icon
19
 
22
 
-
 
23
include 'lang.inc'
-
 
24
include '..\..\..\macros.inc'
20
include 'lang.inc'
25
include '..\..\..\develop\libraries\box_lib\asm\trunk\editbox_ex.mac'
-
 
26
include '..\..\..\develop\libraries\box_lib\load_lib.mac'
21
include '..\..\..\macros.inc'
27
display_processes=32            ; number of processes to show
22
display_processes=32            ; number of processes to show
28
@use_library	;use load lib macros
-
 
29
align 4
-
 
30
START:                          ; start of execution
-
 
31
 
-
 
32
sys_load_library  library_name, cur_dir_path, library_path, system_path, \
-
 
33
err_message_found_lib, head_f_l, myimport, err_message_import, head_f_i
23
align 4
34
        inc     eax
24
START:                          ; start of execution
35
        jz      close
25
; calculate window position
36
; calculate window position
Line 26... Line 37...
26
; at the center of the screen
37
; at the center of the screen
Line 34... Line 45...
34
;    mov  ebp,1
45
;    mov  ebp,1
35
    call draw_window            ; redraw all window
46
    call draw_window            ; redraw all window
36
align 4
47
align 4
37
still:
48
still:
38
    mov  eax,23                 ; wait here for event
49
    mov  eax,23                 ; wait here for event
39
    mov  ebx,200                ; 2 sec.
50
    mov  ebx,100                ; 2 sec.
40
    mcall
51
    mcall
Line 41... Line 52...
41
 
52
 
42
    dec  eax                  ; redraw request ?
53
    dec  eax                  ; redraw request ?
43
    jz   red
54
    jz   red
44
    dec  eax                  ; key in buffer ?
55
    dec  eax                  ; key in buffer ?
45
    jz   key
56
    jz   key
46
    dec  eax                  ; button in buffer ?
57
    dec  eax                  ; button in buffer ?
-
 
58
    jz   button
-
 
59
 
-
 
60
        push    dword edit1
-
 
61
        call    [edit_box_mouse]
47
    jz   button
62
 
48
align 4
63
align 4
49
still_end:    
64
still_end:    
50
    xor  ebp,ebp                ; draw new state of processes
65
    xor  ebp,ebp                ; draw new state of processes
51
    call draw_window
66
    call draw_window
Line 52... Line 67...
52
    jmp  still
67
    jmp  still
53
 
68
 
54
align 4
69
align 4
55
  key:                          ; key
70
  key:                          ; key
-
 
71
    mov  eax,2                  
56
    mov  eax,2                  
72
    mcall
57
    mcall
73
 
58
    cmp  ah,184                 ; PageUp
74
    cmp  ah,184                 ; PageUp
59
    je   pgdn
75
    je   pgdn
60
    cmp  ah,183
76
    cmp  ah,183
61
    je   pgup                   ; PageDown
77
    je   pgup                   ; PageDown
-
 
78
    cmp  ah,27
-
 
79
    je   close                  ; Esc
-
 
80
 
-
 
81
        push    dword edit1
62
    cmp  ah,27
82
        call    [edit_box_key]
63
    je   close                  ; Esc
83
 
64
    jmp  still_end
84
    jmp  still_end
65
align 4
85
align 4
66
  button:                       
86
  button:                       
Line 99... Line 119...
99
    sub  eax,50
119
    sub  eax,50
100
    jz   pgdn
120
    jz   pgdn
101
    dec  eax
121
    dec  eax
102
    jz   pgup
122
    jz   pgup
103
    dec  eax
123
    dec  eax
104
    jz   read_string
124
;    jz   read_string
105
    dec  eax
125
;    dec  eax
106
    jz   program_start
126
    jz   program_start
107
    dec  eax
127
    dec  eax
108
    jz   reboot
128
    jz   reboot
109
    jmp  still_end
129
    jmp  still_end
Line 156... Line 176...
156
    mcall
176
    mcall
157
align 4
177
align 4
158
.nodelete:
178
.nodelete:
159
;create terminate process button
179
;create terminate process button
160
    mov   eax,8
180
    mov   eax,8
161
    mov   ebx,15*65536+100
181
    mov   ebx,(15-offset_x)*65536+100-offset_y
162
    mov   ecx,[curposy]
182
    mov   ecx,[curposy]
163
    shl   ecx,16
183
    shl   ecx,16
164
    mov   cx,10
184
    mov   cx,10
165
    mov   edx,[index]
185
    mov   edx,[index]
166
    add   edx,11
186
    add   edx,11
Line 173... Line 193...
173
.change_color_button:
193
.change_color_button:
174
    mcall
194
    mcall
Line 175... Line 195...
175
    
195
    
176
;draw background for proccess information
196
;draw background for proccess information
177
    mov   eax,13
197
    mov   eax,13
178
    mov   ebx,115*65536+395
198
    mov   ebx,(115-offset_x)*65536+395
179
    ;ecx was already set
199
    ;ecx was already set
180
    mov   edx,0x88ff88
200
    mov   edx,0x88ff88
181
;contrast
201
;contrast
182
    test  dword [index],1
202
    test  dword [index],1
Line 220... Line 240...
220
    
240
    
221
    inc   ecx
241
    inc   ecx
222
    jmp   .find_loop
242
    jmp   .find_loop
223
align 4    
243
align 4    
224
.no_processes:
244
.no_processes:
225
    mov   edi,-1
245
    or   edi,-1
226
    ret
246
    ret
227
align 4    
247
align 4    
228
.process_found:
248
.process_found:
229
    mov  edi,ecx
249
    mov  edi,ecx
Line 273... Line 293...
273
    mov  eax,47                
293
    mov  eax,47                
274
    mov  ebx,2*65536+1*256
294
    mov  ebx,2*65536+1*256
275
;ecx haven't changed since .process_found    
295
;ecx haven't changed since .process_found    
276
;    mov  ecx,edi
296
;    mov  ecx,edi
277
    mov  edx,[curposy]
297
    mov  edx,[curposy]
278
    add  edx,20*65536+1
298
    add  edx,(20-offset_x)*65536+1
279
    mov  esi,[tcolor]
299
    mov  esi,[tcolor]
280
    mcall
300
    mcall
Line 281... Line 301...
281
    
301
    
282
;show process name
302
;show process name
283
    mov  eax,4
303
    mov  eax,4
284
    mov  ebx,[curposy]
304
    mov  ebx,[curposy]
285
    add  ebx,50*65536+1
305
    add  ebx,(50-offset_x)*65536+1
286
    mov  ecx,[tcolor]
306
    mov  ecx,[tcolor]
287
    mov  edx,process_info_buffer.process_name
307
    mov  edx,process_info_buffer.process_name
288
    mov  esi,11
308
    mov  esi,11
Line 289... Line 309...
289
    mcall
309
    mcall
290
    
310
    
291
;show pid
311
;show pid
292
    mov  eax,47
312
    mov  eax,47
293
    mov  ebx,8*65536+1*256
313
    mov  ebx,8*65536+1*256
294
    mov  ecx,[process_info_buffer.PID]
314
    mov  ecx,[process_info_buffer.PID]
295
    mov  edx,[curposy]
315
    mov  edx,[curposy]
296
    add  edx,130*65536+1
316
    add  edx,(130-offset_x)*65536+1
Line 297... Line 317...
297
    mov  esi,[tcolor]
317
    mov  esi,[tcolor]
298
    mcall
318
    mcall
Line 336... Line 356...
336
;build index->slot map for terminating processes.
356
;build index->slot map for terminating processes.
337
    mov  eax,[index]
357
    mov  eax,[index]
338
    mov  [tasklist+4*eax],edi        
358
    mov  [tasklist+4*eax],edi        
339
    ret
359
    ret
340
align 4
360
align 4
341
read_string:
361
;read_string:
342
 
-
 
343
;clean string
362
;clean string
344
    mov  edi,start_application
363
;    mov  edi,start_application
345
    xor  eax,eax
364
;    xor  eax,eax
346
    mov  ecx,60
365
;    mov  ecx,60
347
    cld
366
;    cld
348
    rep  stosb
367
;    rep  stosb
349
    call print_text
368
;    call print_text
Line 350... Line 369...
350
 
369
 
351
    mov  edi,start_application
370
;    mov  edi,start_application
352
;edi now contains pointer to last symbol       
371
;edi now contains pointer to last symbol       
Line 353... Line 372...
353
    jmp  still1
372
;    jmp  still1
354
 
373
 
355
;read string main loop
374
;read string main loop
356
align 4
375
align 4
357
  f11:
376
  f11:
-
 
377
;full update  
-
 
378
    push edi
358
;full update  
379
	xor	ebp,ebp
359
    push edi
380
	inc	ebp
360
    mov  ebp,1
381
;    mov  ebp,1
361
    call draw_window
382
    call draw_window
362
    pop  edi
383
    pop  edi
363
align 4
384
;align 4
364
  still1:  
385
;  still1:  
365
;wait for message  
386
;wait for message  
366
    mov  eax,23
387
;    mov  eax,23
367
    mov  ebx,100
388
;    mov  ebx,100
368
    mcall
389
;    mcall
369
    cmp  eax,1
390
;    cmp  eax,1
370
    je   f11
391
;    je   f11
371
;if no message - update process information    
392
;if no message - update process information    
372
    cmp  eax,0
393
;    cmp  eax,0
373
    jnz  .message_received
394
;    jnz  .message_received
374
    push edi                ;edi should be saved since draw_window
395
;    push edi                ;edi should be saved since draw_window
375
    xor  ebp,ebp            ;corrupt registers
396
;    xor  ebp,ebp            ;corrupt registers
376
    call draw_window
397
;    call draw_window
377
    pop  edi
398
;    pop  edi
378
    jmp  still1
399
;    jmp  still1
379
align 4    
400
;align 4    
380
.message_received:
401
;.message_received:
381
    cmp  eax,2
402
;    cmp  eax,2
382
    jne  read_done          ;buttons message
403
;    jne  read_done          ;buttons message
383
;read char    
404
;read char    
384
    mov  eax,2
405
;    mov  eax,2
Line 385... Line 406...
385
    mcall
406
;    mcall
386
    shr  eax,8
407
;    shr  eax,8
387
    
408
    
388
;if enter pressed, exit read string loop    
409
;if enter pressed, exit read string loop    
389
    cmp  eax,13
410
;    cmp  eax,13
390
    je   read_done
411
;    je   read_done
391
;if backslash pressed?    
412
;if backslash pressed?    
392
    cmp  eax,8
413
;    cmp  eax,8
393
    jnz  nobsl
414
;    jnz  nobsl
394
;decrease pointer to last symbol    
415
;decrease pointer to last symbol    
395
    cmp  edi,start_application
416
;    cmp  edi,start_application
396
    jz   still1
417
;    jz   still1
397
    dec  edi
418
;    dec  edi
398
;fill last symbol with space because
419
;fill last symbol with space because
399
;print_text show all symbols    
420
;print_text show all symbols    
400
    mov  [edi],byte 32
421
;    mov  [edi],byte 32
401
    call print_text
422
;    call print_text
402
    jmp  still1
423
;    jmp  still1
403
align 4    
424
;align 4    
404
  nobsl:
425
;  nobsl:
405
;write new symbol  
426
;write new symbol  
406
    mov  [edi],al
427
;    mov  [edi],al
407
;display new text
428
;display new text
408
    call print_text
429
;    call print_text
409
;increment pointer to last symbol
430
;increment pointer to last symbol
410
    inc  edi
431
;    inc  edi
411
;compare with end of string    
432
;compare with end of string    
412
    mov  esi,start_application
433
;    mov  esi,start_application
Line 413... Line 434...
413
    add  esi,60
434
;    add  esi,60
414
    cmp  esi,edi
435
;    cmp  esi,edi
415
    jnz  still1
436
;    jnz  still1
416
 
437
 
417
;exiting from read string loop
438
;exiting from read string loop
Line 418... Line 439...
418
align 4
439
;align 4
419
  read_done:
440
;  read_done:
Line 420... Line 441...
420
;terminate string for file functions
441
;terminate string for file functions
421
    mov  [edi],byte 0
442
;    mov  [edi],byte 0
422
 
443
 
Line 423... Line 444...
423
    call print_text
444
;    call print_text
Line 424... Line 445...
424
    jmp  still
445
;    jmp  still
425
 
446
 
426
align 4
447
;align 4
427
print_text:
448
;print_text:
428
;display start_application string
449
;display start_application string
429
 
450
 
Line 430... Line 451...
430
    pushad
451
;    pushad
431
    
452
    
432
;display text background
453
;display text background
433
    mov  eax,13
454
;    mov  eax,13
434
    mov  ebx,64*65536+62*6
455
;    mov  ebx,64*65536+62*6
435
    mov  ecx,400*65536+12
456
;    mov  ecx,400*65536+12
436
    mov  edx,0xffffcc  ;0xeeeeee
457
;    mov  edx,0xffffcc  ;0xeeeeee
Line 437... Line 458...
437
    mcall
458
;    mcall
438
    
459
    
Line 439... Line 460...
439
;display text    
460
;display text    
440
    mov  eax,4                  
461
;    mov  eax,4                  
441
    mov  edx,start_application  ;from start_application string
462
;    mov  edx,start_application  ;from start_application string
442
    mov  ebx,70*65536+402       ;text center-aligned
463
;    mov  ebx,70*65536+402       ;text center-aligned
Line 498... Line 519...
498
 
519
 
499
                                   ; DRAW WINDOW
520
                                   ; DRAW WINDOW
500
    xor  eax,eax                   ; function 0 : define and draw window
521
    xor  eax,eax                   ; function 0 : define and draw window
501
    mov  ebx,[winxpos]             ; [x start] *65536 + [x size]
522
    mov  ebx,[winxpos]             ; [x start] *65536 + [x size]
502
    mov  ecx,[winypos]             ; [y start] *65536 + [y size]
523
    mov  ecx,[winypos]             ; [y start] *65536 + [y size]
503
    mov  edx,0x14ddffdd  ;ffffff   ; color of work area RRGGBB,8->color
524
    mov  edx,0x34ddffdd  ;ffffff   ; color of work area RRGGBB,8->color
504
    mov  edi,title                ; WINDOW CAPTION;
525
    mov  edi,title                ; WINDOW CAPTION;
Line 505... Line 526...
505
    mcall
526
    mcall
506
 
527
 
507
                                   
528
                                   
508
    mov  eax,4                     ; function 4 : write text to window
529
    add  eax,4                     ; function 4 : write text to window
509
    mov  ebx,22*65536+35           ; draw info text with function 4
530
    mov  ebx,(22-offset_x)*65536+35-offset_y           ; draw info text with function 4
510
    xor  ecx,ecx
531
    xor  ecx,ecx
-
 
532
    mov  edx,text
-
 
533
    mov  esi,text_len
-
 
534
    mcall
-
 
535
 
511
    mov  edx,text
536
        push    dword edit1
512
    mov  esi,text_len
537
        call    [edit_box_draw]
513
    mcall
538
 
514
align 4
539
align 4
515
.show_process_info:
540
.show_process_info:
516
    mov  edi,[list_start]
541
    mov  edi,[list_start]
517
    mov  [list_add],edi
542
    mov  [list_add],edi
518
    mov  dword [index],0
543
    mov  dword [index],0
519
    mov  dword [curposy],54
544
    mov  dword [curposy],54-offset_y
520
align 4
545
align 4
521
.loop_draw:
546
.loop_draw:
Line 529... Line 554...
529
    jz   .end_redraw
554
    jz   .end_redraw
530
    mov  eax,8
555
    mov  eax,8
531
    mov  esi,0xaabbcc
556
    mov  esi,0xaabbcc
Line 532... Line 557...
532
                                    
557
                                    
533
; previous page button
558
; previous page button
534
    mov  ebx,30*65536+96
559
    mov  ebx,(30-offset_x)*65536+96
535
    mov  ecx,380*65536+10
560
    mov  ecx,(380-offset_y)*65536+10
536
    mov  edx,51
561
    mov  edx,51
Line 537... Line 562...
537
    mcall
562
    mcall
538
                                    
563
                                    
539
; next page button
564
; next page button
540
    mov  ebx,130*65536+96
565
    mov  ebx,(130-offset_x)*65536+96
Line 541... Line 566...
541
    inc  edx
566
    inc  edx
542
    mcall
567
    mcall
543
                              
568
                              
544
; ">" (text enter) button
569
; ">" (text enter) button
545
    mov  ebx,30*65536+20
570
;    mov  ebx,30*65536+20
Line 546... Line 571...
546
    add  ecx,20 shl 16
571
    add  ecx,20 shl 16
547
    inc  edx
572
;    inc  edx
548
    mcall
573
;    mcall
549
                                    
574
                                    
Line 550... Line 575...
550
; run button
575
; run button
551
    mov  ebx,456*65536+50
576
    mov  ebx,(456-offset_x)*65536+50
Line 559... Line 584...
559
    inc  edx
584
    inc  edx
560
    mcall
585
    mcall
Line 561... Line 586...
561
    
586
    
562
;"PREV PAGE", "NEXT PAGE" and "REBOOT" labels
587
;"PREV PAGE", "NEXT PAGE" and "REBOOT" labels
563
    mov  eax,4
588
    mov  eax,4
564
    mov  ebx,50*65536+382
589
    mov  ebx,(50-offset_x)*65536+382-offset_y
565
    xor  ecx,ecx
590
    xor  ecx,ecx
566
    mov  edx,tbts
591
    mov  edx,tbts
567
    mov  esi,tbte-tbts
592
    mov  esi,tbte-tbts
Line 568... Line 593...
568
    mcall
593
    mcall
569
 
594
 
570
;">" labels
595
;">" labels
571
    mov  eax,4
596
;    mov  eax,4
572
    mov  ebx,40*65536+402
597
;    mov  ebx,40*65536+402
573
    xor  ecx,ecx
598
;    xor  ecx,ecx
574
    mov  edx,tbts_2
599
;    mov  edx,tbts_2
Line 575... Line 600...
575
    mov  esi,1
600
;    mov  esi,1
576
    mcall
601
;    mcall
577
 
602
 
578
;"RUN" labels
603
;"RUN" labels
579
    mov  eax,4
604
;    mov  eax,4
580
    mov  ebx,475*65536+402
605
    mov  ebx,(475-offset_x)*65536+402-offset_y
581
    xor  ecx,ecx
606
    xor  ecx,ecx
Line 582... Line 607...
582
    mov  edx,tbts_3
607
    mov  edx,tbts_3
583
    mov  esi,tbte_2-tbts_3
608
    mov  esi,tbte_2-tbts_3
Line 584... Line 609...
584
    mcall
609
    mcall
585
 
610
 
586
;print application name in text box
611
;print application name in text box
587
    call print_text
612
;    call print_text
588
 
613
 
589
    mov  eax,12                    ; function 12:tell os about windowdraw
614
    mov  eax,12                    ; function 12:tell os about windowdraw
Line 590... Line 615...
590
    mov  ebx,2                     ; 2, end of draw
615
    mov  ebx,2                     ; 2, end of draw
-
 
616
    mcall
-
 
617
align 4    
-
 
618
.end_redraw:
-
 
619
    ret
-
 
620
 
-
 
621
 
-
 
622
; DATA AREA
-
 
623
system_path      db '/sys/lib/'
-
 
624
library_name     db 'box_lib.obj',0
-
 
625
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
-
 
626
 
-
 
627
err_message_found_lib   db 'Sorry I cannot load library box_lib.obj',0
-
 
628
head_f_i:
-
 
629
head_f_l        db 'System error',0
-
 
630
err_message_import      db 'Error on load import library box_lib.obj',0
-
 
631
 
-
 
632
myimport:   
-
 
633
 
-
 
634
edit_box_draw   dd      aEdit_box_draw
-
 
635
edit_box_key    dd      aEdit_box_key
-
 
636
edit_box_mouse  dd      aEdit_box_mouse
-
 
637
;version_ed      dd      aVersion_ed
-
 
638
 
-
 
639
;check_box_draw  dd      aCheck_box_draw
-
 
640
;check_box_mouse dd      aCheck_box_mouse
-
 
641
;version_ch      dd      aVersion_ch
-
 
642
 
-
 
643
;option_box_draw  dd      aOption_box_draw
-
 
644
;option_box_mouse dd      aOption_box_mouse
-
 
645
;version_op       dd      aVersion_op
-
 
646
 
-
 
647
                dd      0
-
 
648
                dd      0
-
 
649
 
-
 
650
aEdit_box_draw  db 'edit_box',0
-
 
651
aEdit_box_key   db 'edit_box_key',0
-
 
652
aEdit_box_mouse db 'edit_box_mouse',0
-
 
653
;aVersion_ed     db 'version_ed',0
-
 
654
 
-
 
655
;aCheck_box_draw  db 'check_box_draw',0
-
 
656
;aCheck_box_mouse db 'check_box_mouse',0
-
 
657
;aVersion_ch      db 'version_ch',0
591
    mcall
658
 
Line 592... Line 659...
592
align 4    
659
;aOption_box_draw  db 'option_box_draw',0
593
.end_redraw:
660
;aOption_box_mouse db 'option_box_mouse',0
594
    ret
-
 
595
 
-
 
596
 
-
 
597
; DATA AREA
-
 
598
list_start  dd 0
661
;aVersion_op       db 'version_op',0
599
 
662
 
600
file_start: dd 7
663
edit1 edit_box 350,(64-offset_x),(398-offset_y),0xffffff,0x6f9480,0,0xAABBCC,0,start_application_c,start_application,ed_focus,start_application_e,start_application_e
601
            dd 0,0,0,0
664
 
602
 
665
list_start  dd 0
Line 617... Line 680...
617
  db 'SPEICHER START/NUTZUNG  W-STACK  W-SIZE'
680
  db 'SPEICHER START/NUTZUNG  W-STACK  W-SIZE'
618
text_len = $-text
681
text_len = $-text
Line 619... Line 682...
619
 
682
 
620
tbts:   db  'SEITE ZURUECK       SEITE VOR                      REBOOT SYSTEM'
683
tbts:   db  'SEITE ZURUECK       SEITE VOR                      REBOOT SYSTEM'
621
tbte:
684
tbte:
622
tbts_2  db  '>'
685
;tbts_2  db  '>'
623
tbts_3  db  'START'
686
tbts_3  db  'START'
Line 624... Line 687...
624
tbte_2:
687
tbte_2:
Line 631... Line 694...
631
  db 'MÄLU ALGUS/KASUTUS  W-PUHVER  W-SUURUS'
694
  db 'MÄLU ALGUS/KASUTUS  W-PUHVER  W-SUURUS'
632
text_len = $-text
695
text_len = $-text
Line 633... Line 696...
633
 
696
 
634
tbts:	db  'EELMINE LEHT   JÄRGMINE LEHT                     REBOODI SÜSTEEM'
697
tbts:	db  'EELMINE LEHT   JÄRGMINE LEHT                     REBOODI SÜSTEEM'
635
tbte:
698
tbte:
636
tbts_2	db  '>'
699
;tbts_2	db  '>'
637
tbts_3	db  'START'
700
tbts_3	db  'START'
Line 638... Line 701...
638
tbte_2:
701
tbte_2:
Line 645... Line 708...
645
  db 'MEMORY START/USAGE  W-STACK   W-SIZE'
708
  db 'MEMORY START/USAGE  W-STACK   W-SIZE'
646
text_len = $-text
709
text_len = $-text
Line 647... Line 710...
647
 
710
 
648
tbts:   db  'PREV PAGE       NEXT PAGE                         REBOOT SYSTEM'
711
tbts:   db  'PREV PAGE       NEXT PAGE                         REBOOT SYSTEM'
649
tbte:
712
tbte:
650
tbts_2  db  '>'
713
;tbts_2  db  '>'
651
tbts_3  db  'RUN'
714
tbts_3  db  'RUN'
Line 652... Line 715...
652
tbte_2:
715
tbte_2:
Line 653... Line 716...
653
 
716
 
-
 
717
title  db   'Processes - Ctrl/Alt/Del',0
-
 
718
 
-
 
719
end if
654
title  db   'Processes - Ctrl/Alt/Del',0
720
start_application: db '/sys/LAUNCHER',0
-
 
721
start_application_e=$-start_application-1
-
 
722
;                   times 60 db 0
655
 
723
rb	60
656
end if
-
 
657
 
724
start_application_c=$-start_application-1
658
I_END:
725
align 4
Line 659... Line 726...
659
 
726
I_END:
660
winxpos  rd 1
727
winxpos  rd 1
661
winypos  rd 1
728
winypos  rd 1
662
 
729
 
663
cpu_percent rd 1
730
cpu_percent rd 1
664
tcolor      rd 1
731
tcolor      rd 1
665
list_add    rd 1
732
list_add    rd 1
-
 
733
curposy     rd 1
-
 
734
index       rd 1
-
 
735
tasklist    rd display_processes
666
curposy     rd 1
736
process_info_buffer process_information