Rev 6535 | Rev 6601 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed
Rev 6535 | Rev 6589 | ||
---|---|---|---|
Line 4... | Line 4... | ||
4 | section '.init' code ; Keep this line before includes or GCC messes up call addresses |
4 | section '.init' code ; Keep this line before includes or GCC messes up call addresses |
Line 5... | Line 5... | ||
5 | 5 | ||
6 | include '../../../programs/proc32.inc' |
6 | include '../../../programs/proc32.inc' |
7 | include '../../../programs/macros.inc' |
7 | include '../../../programs/macros.inc' |
8 | purge section,mov,add,sub |
8 | purge section,mov,add,sub |
9 | 9 | ||
10 | include '../../../programs/develop/libraries/box_lib/trunk/box_lib.mac' |
10 | include '../../../programs/develop/libraries/box_lib/trunk/box_lib.mac' |
11 | include '../../../programs/system/run/trunk/txtbut.inc' |
11 | include '../../../programs/system/run/trunk/txtbut.inc' |
12 | include '../../../programs/dll.inc' |
12 | include '../../../programs/dll.inc' |
13 | 13 | ||
14 | public init_boxlib as '_kolibri_boxlib_init' |
14 | public init_boxlib as '_kolibri_boxlib_init' |
15 | public editbox_key_thunk as '_editbox_key@4' ; renamed due to ambiguity |
15 | public editbox_key_thunk as '_editbox_key@4' ; renamed due to ambiguity |
16 | public press_key as '_press_key' |
16 | public press_key as '_press_key' |
Line 20... | Line 20... | ||
20 | pusha |
20 | pusha |
21 | mcall 68,11 |
21 | mcall 68,11 |
22 | stdcall dll.Load, @IMPORT |
22 | stdcall dll.Load, @IMPORT |
23 | popa |
23 | popa |
24 | ret |
24 | ret |
25 | endp |
25 | endp |
26 | 26 | ||
27 | ;; Wrapper to handle edit_box_key function for editboxes. |
27 | ;; Wrapper to handle edit_box_key function for editboxes. |
28 | ;; Call this baby from C (refer kolibri_editbox.h for details) |
28 | ;; Call this baby from C (refer kolibri_editbox.h for details) |
29 | editbox_key_thunk: |
29 | editbox_key_thunk: |
30 | mov [oldebp], ebp ;Save ebp because GCC is crazy for it otherwise. |
30 | mov [oldebp], ebp ;Save ebp because GCC is crazy for it otherwise. |
31 | pop ebp ;Save return address in ebp. Stack top is param now. |
31 | pop ebp ;Save return address in ebp. Stack top is param now. |
32 | mov eax, dword [press_key] |
32 | mov eax, dword [press_key] |
33 | call [edit_box_key] ; The pointer we passed should be on the stack already. |
33 | call [edit_box_key] ; The pointer we passed should be on the stack already. |
34 | push ebp ;push the return address back to stack |
34 | push ebp ;push the return address back to stack |
35 | mov ebp, [oldebp] |
35 | mov ebp, [oldebp] |
36 | ret |
36 | ret |
37 | 37 | ||
38 | oldebp dd ? |
38 | oldebp dd ? |
39 | press_key dd ? |
39 | press_key dd ? |
Line 40... | Line 40... | ||
40 | 40 | ||
41 | @IMPORT: |
41 | @IMPORT: |
Line 102... | Line 102... | ||
102 | ted_init_scroll_bars, 'ted_init_scroll_bars' , \ |
102 | ted_init_scroll_bars, 'ted_init_scroll_bars' , \ |
103 | ted_init_syntax_file, 'ted_init_syntax_file' , \ |
103 | ted_init_syntax_file, 'ted_init_syntax_file' , \ |
104 | ted_is_select, 'ted_is_select' , \ |
104 | ted_is_select, 'ted_is_select' , \ |
105 | ted_key, 'ted_key' , \ |
105 | ted_key, 'ted_key' , \ |
106 | ted_mouse, 'ted_mouse' , \ |
106 | ted_mouse, 'ted_mouse' , \ |
107 | ted_open_file, 'ted_open_file' , \ |
107 | ted_open_file, 'ted_open_file_asm' , \ |
108 | ted_save_file, 'ted_save_file' , \ |
108 | ted_save_file, 'ted_save_file' , \ |
109 | ted_text_add, 'ted_text_add' , \ |
109 | ted_text_add, 'ted_text_add' , \ |
110 | ted_but_select_word, 'ted_but_select_word' , \ |
110 | ted_but_select_word, 'ted_but_select_word' , \ |
111 | ted_but_cut, 'ted_but_cut' , \ |
111 | ted_but_cut, 'ted_but_cut' , \ |
112 | ted_but_copy, 'ted_but_copy' , \ |
112 | ted_but_copy, 'ted_but_copy' , \ |
Line 118... | Line 118... | ||
118 | ted_text_colored, 'ted_text_colored' , \ |
118 | ted_text_colored, 'ted_text_colored' , \ |
119 | frame_draw, 'frame_draw' , \ |
119 | frame_draw, 'frame_draw' , \ |
120 | progressbar_draw,'progressbar_draw' , \ |
120 | progressbar_draw,'progressbar_draw' , \ |
121 | progressbar_progress, 'progressbar_progress' |
121 | progressbar_progress, 'progressbar_progress' |
Line 122... | Line 122... | ||
122 | 122 | ||
123 | 123 | ||
124 | public edit_box_draw as '_edit_box_draw' |
124 | public edit_box_draw as '_edit_box_draw' |
125 | public edit_box_key as '_edit_box_key' |
125 | public edit_box_key as '_edit_box_key' |
126 | public edit_box_mouse as '_edit_box_mouse' |
126 | public edit_box_mouse as '_edit_box_mouse' |
Line 127... | Line 127... | ||
127 | public edit_box_set_text as '_edit_box_set_text' |
127 | public edit_box_set_text as '_edit_box_set_text' |
128 | 128 | ||
129 | public check_box_draw2 as '_check_box_draw2' |
129 | public check_box_draw2 as '_check_box_draw2' |
Line 141... | Line 141... | ||
141 | public scrollbar_h_mouse as '_scrollbar_h_mouse' |
141 | public scrollbar_h_mouse as '_scrollbar_h_mouse' |
Line 142... | Line 142... | ||
142 | 142 | ||
143 | public option_box_draw as '_option_box_draw' |
143 | public option_box_draw as '_option_box_draw' |
Line 144... | Line 144... | ||
144 | public option_box_mouse as '_option_box_mouse' |
144 | public option_box_mouse as '_option_box_mouse' |
145 | 145 | ||
146 | public menu_bar_draw as '_menu_bar_draw' |
146 | public menu_bar_draw as '_menu_bar_draw' |
Line 147... | Line 147... | ||
147 | public menu_bar_mouse as '_menu_bar_mouse' |
147 | public menu_bar_mouse as '_menu_bar_mouse' |
148 | public menu_bar_activate as '_menu_bar_activate' |
148 | public menu_bar_activate as '_menu_bar_activate' |
Line 149... | Line 149... | ||
149 | 149 | ||
150 | public dynamic_button_draw as '_dynamic_button_draw' |
150 | public dynamic_button_draw as '_dynamic_button_draw' |
Line 151... | Line 151... | ||
151 | public dynamic_button_mouse as '_dynamic_button_mouse' |
151 | public dynamic_button_mouse as '_dynamic_button_mouse' |
152 | 152 | ||
153 | public path_show_prepare as '_path_show_prepare' |
153 | public path_show_prepare as '_path_show_prepare' |
- | 154 | public path_show_draw as '_path_show_draw' |
|
- | 155 | ||
- | 156 | public fb_draw_panel as '_filebrowse_draw' |
|
- | 157 | public fb_mouse as '_filebrowse_mouse' |
|
- | 158 | public fb_key as '_filebrowse_key' |
|
- | 159 | ||
- | 160 | public ted_but_sumb_upper as '_ted_but_sumb_upper_asm' |
|
- | 161 | public ted_but_sumb_lover as '_ted_but_sumb_lover_asm' |
|
- | 162 | public ted_but_convert_by_table as '_ted_but_convert_by_table_asm' |
|
- | 163 | public ted_can_save as '_ted_can_save_asm' |
|
- | 164 | public ted_clear as '_ted_clear_asm' |
|
- | 165 | public ted_delete as '_ted_delete_asm' |
|
- | 166 | public ted_draw as '_ted_draw' |
|
- | 167 | public ted_init as '_ted_init_asm' |
|
- | 168 | public ted_init_scroll_bars as '_ted_init_scroll_bars' |
|
- | 169 | public ted_init_syntax_file as '_ted_init_syntax_file' |
|
- | 170 | public ted_is_select as '_ted_is_select_asm' |
|
- | 171 | public ted_key as '_ted_key_asm' |
|
- | 172 | public ted_mouse as '_ted_mouse' |
|
- | 173 | public ted_open_file as '_ted_open_file_asm' |
|
- | 174 | public ted_save_file as '_ted_save_file_asm' |
|
- | 175 | public ted_text_add as '_ted_text_add' |
|
- | 176 | public ted_but_select_word as '_ted_but_select_word' |
|
- | 177 | public ted_but_cut as '_ted_but_cut_asm' |
|
- | 178 | public ted_but_copy as '_ted_but_copy' |
|
- | 179 | public ted_but_paste as '_ted_but_paste' |
|
- | 180 | public ted_but_undo as '_ted_but_undo_asm' |