Rev 629 | Rev 826 | Go to most recent revision | Show entire file | Regard whitespace | Details | Blame | Last modification | View Log | RSS feed
Rev 629 | Rev 824 | ||
---|---|---|---|
Line -... | Line 1... | ||
- | 1 | diff16 'tp-key.asm',0,$ |
|
- | 2 | ||
1 | key: |
3 | key: |
2 | mov ecx,1 |
4 | mov ecx,1 |
3 | mcall 66,3 |
5 | mcall 66,3 |
4 | xor ebx,ebx |
6 | xor ebx,ebx |
5 | test al,0x03 |
7 | test al,0x03 |
Line 542... | Line 544... | ||
542 | add [esp],eax |
544 | add [esp],eax |
543 | add esi,eax |
545 | add esi,eax |
544 | mov ecx,[copy_size] |
546 | mov ecx,[copy_size] |
545 | sub ecx,4 |
547 | sub ecx,4 |
546 | mov edi,[cur_editor.Lines] |
548 | mov edi,[cur_editor.Lines] |
547 | add edi,[edi-4] |
549 | add edi,[cur_editor.Lines.Size] ;*** add edi,[edi-4] |
548 | dec edi |
550 | dec edi |
549 | mov eax,esi |
551 | mov eax,esi |
550 | mov esi,edi |
552 | mov esi,edi |
551 | sub esi,ecx |
553 | sub esi,ecx |
552 | lea ecx,[eax+4] |
554 | lea ecx,[eax+4] |
Line 689... | Line 691... | ||
689 | add esi,eax |
691 | add esi,eax |
690 | push eax |
692 | push eax |
Line 691... | Line 693... | ||
691 | 693 | ||
692 | dec [cur_editor.Lines.Count] |
694 | dec [cur_editor.Lines.Count] |
693 | mov ecx,[cur_editor.Lines] |
695 | mov ecx,[cur_editor.Lines] |
694 | add ecx,[ecx-4] |
696 | add ecx,[cur_editor.Lines.Size] ;*** add ecx,[ecx-4] |
695 | sub ecx,esi |
697 | sub ecx,esi |
696 | shr ecx,2 |
698 | shr ecx,2 |
697 | cld |
699 | cld |
Line 1077... | Line 1079... | ||
1077 | jbe @f |
1079 | jbe @f |
1078 | mov [cur_editor.Columns.Count],eax |
1080 | mov [cur_editor.Columns.Count],eax |
1079 | @@: |
1081 | @@: |
1080 | push ecx |
1082 | push ecx |
1081 | mov edi,[cur_editor.Lines] |
1083 | mov edi,[cur_editor.Lines] |
1082 | add edi,[edi-4] |
1084 | add edi,[cur_editor.Lines.Size] ;*** add edi,[edi-4] |
1083 | dec edi |
1085 | dec edi |
1084 | lea esi,[edi+8] |
1086 | lea esi,[edi+8] |
1085 | sub esi,ecx |
1087 | sub esi,ecx |
1086 | movzx eax,word[ebp] |
1088 | movzx eax,word[ebp] |
1087 | add esi,eax |
1089 | add esi,eax |
Line 1100... | Line 1102... | ||
1100 | movzx eax,word[esi-8] |
1102 | movzx eax,word[esi-8] |
1101 | add esi,eax |
1103 | add esi,eax |
1102 | movzx eax,word[esi-4] |
1104 | movzx eax,word[esi-4] |
1103 | add esi,eax |
1105 | add esi,eax |
1104 | mov ecx,[cur_editor.Lines] |
1106 | mov ecx,[cur_editor.Lines] |
1105 | add ecx,[ecx-4] |
1107 | add ecx,[cur_editor.Lines.Size] ;*** add ecx,[ecx-4] |
1106 | sub ecx,esi |
1108 | sub ecx,esi |
1107 | cld |
1109 | cld |
1108 | @@: rep movsb |
1110 | @@: rep movsb |
1109 | .lp1: pop ecx |
1111 | .lp1: pop ecx |
1110 | mov esi,[temp_buf] |
1112 | mov esi,[temp_buf] |
Line 1125... | Line 1127... | ||
1125 | mov ecx,[cur_editor.Lines.Count] |
1127 | mov ecx,[cur_editor.Lines.Count] |
1126 | call get_line_offset |
1128 | call get_line_offset |
1127 | movzx eax,word[esi] |
1129 | movzx eax,word[esi] |
1128 | lea esi,[esi+eax+4] |
1130 | lea esi,[esi+eax+4] |
1129 | mov eax,[cur_editor.Lines] |
1131 | mov eax,[cur_editor.Lines] |
1130 | add eax,[eax-4] |
1132 | add eax,[cur_editor.Lines.Size] ;*** add eax,[eax-4] |
1131 | sub esi,eax |
1133 | sub esi,eax |
1132 | lea eax,[esi+4096] |
1134 | lea eax,[esi+4096] |
1133 | call editor_realloc_lines |
1135 | call editor_realloc_lines |
Line 1134... | Line 1136... | ||
1134 | 1136 | ||
Line 1247... | Line 1249... | ||
1247 | call editor_realloc_lines |
1249 | call editor_realloc_lines |
1248 | add esi,eax |
1250 | add esi,eax |
1249 | pop eax |
1251 | pop eax |
1250 | pushad |
1252 | pushad |
1251 | mov ecx,[cur_editor.Lines] |
1253 | mov ecx,[cur_editor.Lines] |
1252 | add ecx,[ecx-4] |
1254 | add ecx,[cur_editor.Lines.Size] ;*** add ecx,[ecx-4] |
1253 | dec ecx |
1255 | dec ecx |
1254 | mov edi,ecx |
1256 | mov edi,ecx |
1255 | add ecx,-10+1 |
1257 | add ecx,-10+1 |
1256 | movzx eax,word[esi] |
1258 | movzx eax,word[esi] |
1257 | lea eax,[esi+eax+4] |
1259 | lea eax,[esi+eax+4] |
Line 1390... | Line 1392... | ||
1390 | mov ecx,edi |
1392 | mov ecx,edi |
1391 | sub ecx,[temp_buf] |
1393 | sub ecx,[temp_buf] |
Line 1392... | Line 1394... | ||
1392 | 1394 | ||
1393 | push ecx |
1395 | push ecx |
1394 | mov edi,[cur_editor.Lines] |
1396 | mov edi,[cur_editor.Lines] |
1395 | add edi,[edi-4] |
1397 | add edi,[cur_editor.Lines.Size] ;*** add edi,[edi-4] |
1396 | dec edi |
1398 | dec edi |
1397 | lea esi,[edi+4] |
1399 | lea esi,[edi+4] |
1398 | sub esi,ecx |
1400 | sub esi,ecx |
1399 | movzx ecx,word[ebp] |
1401 | movzx ecx,word[ebp] |
Line 1408... | Line 1410... | ||
1408 | mov eax,[esp] |
1410 | mov eax,[esp] |
1409 | lea edi,[esi+eax-4] |
1411 | lea edi,[esi+eax-4] |
1410 | movzx ecx,word[ebp] |
1412 | movzx ecx,word[ebp] |
1411 | add esi,ecx |
1413 | add esi,ecx |
1412 | mov ecx,[cur_editor.Lines] |
1414 | mov ecx,[cur_editor.Lines] |
1413 | add ecx,[ecx-4] |
1415 | add ecx,[cur_editor.Lines.Size] ;*** add ecx,[ecx-4] |
1414 | sub ecx,esi |
1416 | sub ecx,esi |
1415 | cld |
1417 | cld |
1416 | @@: rep movsb |
1418 | @@: rep movsb |
1417 | .lp3: pop ecx |
1419 | .lp3: pop ecx |
1418 | mov esi,[temp_buf] |
1420 | mov esi,[temp_buf] |