Subversion Repositories Kolibri OS

Rev

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

Rev 1522 Rev 1566
Line 1... Line 1...
1
;;===Pause_mode================================================================================================================
1
;;===Pause_mode================================================================================================================
Line 2... Line 2...
2
 
2
 
Line -... Line 3...
-
 
3
Pause_mode:
3
Pause_mode:
4
 
4
 
5
      call      Show_cursor
5
    mov  [action],  0
6
    mov  [action],  0
Line 6... Line 7...
6
    mov  eax, [time_wait_limit]
7
    mov  eax, [time_wait_limit]
Line 35... Line 36...
35
  .button:                                      ; a button was pressed
36
  .button:                                      ; a button was pressed
36
      mcall     17                              ; get button number
37
      mcall     17                              ; get button number
37
    shr  eax, 8                                 ; we should do it to get the real button code
38
    shr  eax, 8                                 ; we should do it to get the real button code
Line 38... Line 39...
38
 
39
 
39
    cmp  eax, 1
40
    cmp  eax, 1
Line 40... Line 41...
40
     je  Exit
41
     je  Save_do_smth_else_and_exit
Line 41... Line 42...
41
 
42
 
Line 58... Line 59...
58
;;===Some_functions============================================================================================================
59
;;===Some_functions============================================================================================================
Line 59... Line 60...
59
 
60
 
60
Draw_pause_picture:
61
Draw_pause_picture:
Line 61... Line 62...
61
    ;;===Draw_pause_picture========================================================================================================
62
    ;;===Draw_pause_picture========================================================================================================
62
 
63
 
63
    mov  ax,  0*0x100+29
64
    mov  ax,  2*0x100+24
64
    mov  cx,  4*0x100+6
65
    mov  cx,  4*0x100+6
65
    mov  edx, [pause_picture_color]
66
    mov  edx, [pause_picture_color]
Line 74... Line 75...
74
Draw_pause_strings:
75
Draw_pause_strings:
75
    ;;===Draw_pause_strings================================================================================================
76
    ;;===Draw_pause_strings================================================================================================
Line 76... Line 77...
76
 
77
 
77
    mov  ebx, [window_width]
78
    mov  ebx, [window_width]
78
    shr  ebx, 1
79
    shr  ebx, 1
79
    sub  ebx, (string_menu_esc-string_resume_space-1)*3+6
80
    sub  ebx, string_resume_space.size*3+6
80
    shl  ebx, 16
81
    shl  ebx, 16
81
    add  ebx, dword[bottom_middle_strings]
82
    add  ebx, dword[bottom_middle_strings]
Line 82... Line 83...
82
      mcall     4, ,[navigation_strings_color],string_resume_space ; Show 'RESUME - SPACE' string
83
      mcall     4, ,[navigation_strings_color],string_resume_space ; Show 'RESUME - SPACE' string