Rev 2817 | Rev 2855 | Go to most recent revision | Show entire file | Regard whitespace | Details | Blame | Last modification | View Log | RSS feed
Rev 2817 | Rev 2847 | ||
---|---|---|---|
Line 155... | Line 155... | ||
155 | ; eax = ª®¤ ®è¨¡ª¨ |
155 | ; eax = ª®¤ ®è¨¡ª¨ |
156 | ; ebx = ª®««¨ç¥á⢮ ¯à®ç¨â ëå ¡ ©â |
156 | ; ebx = ª®««¨ç¥á⢮ ¯à®ç¨â ëå ¡ ©â |
157 | ; edi = pointer to tedit struct |
157 | ; edi = pointer to tedit struct |
158 | align 4 |
158 | align 4 |
159 | ted_messages_after_open_file: |
159 | ted_messages_after_open_file: |
160 | push ecx |
160 | push ecx edi |
161 | cmp eax,0 |
161 | cmp eax,0 |
162 | je @f |
162 | je @f |
163 | cmp eax,6 |
163 | cmp eax,6 |
164 | je @f |
164 | je @f |
165 | cmp ax,10 |
165 | cmp ax,10 |
Line 174... | Line 174... | ||
174 | jmp .ret_f |
174 | jmp .ret_f |
175 | @@: |
175 | @@: |
176 | cmp ebx,-1 |
176 | cmp ebx,-1 |
177 | je .ret_f |
177 | je .ret_f |
178 | ;if open file |
178 | ;if open file |
- | 179 | mov edi,tedit0 |
|
179 | mov ecx,ted_max_chars |
180 | mov ecx,ted_max_chars |
180 | sub ecx,2 ;ecx = ¬ ªá¨¬ «ì®¥ ç¨á«® ¡ ©â, ¤«ï ª®â®àëå ¡ë« ¢ë¤¥«¥ ¯ ¬ïâì |
181 | sub ecx,2 ;ecx = ¬ ªá¨¬ «ì®¥ ç¨á«® ¡ ©â, ¤«ï ª®â®àëå ¡ë« ¢ë¤¥«¥ ¯ ¬ïâì |
181 | cmp ebx,ecx |
182 | cmp ebx,ecx |
182 | jl .ret_f |
183 | jl .ret_f |
183 | stdcall [mb_create],msgbox_1,thread |
184 | stdcall [mb_create],msgbox_1,thread |
184 | .ret_f: |
185 | .ret_f: |
185 | pop ecx |
186 | pop edi ecx |
186 | ret |
187 | ret |
Line 187... | Line 188... | ||
187 | 188 | ||
188 | align 4 |
189 | align 4 |
189 | ted_save_err_msg: |
190 | ted_save_err_msg: |