Subversion Repositories Kolibri OS

Compare Revisions

Regard whitespace Rev 7570 → Rev 7571

/programs/other/t_edit/t_button.inc
194,21 → 194,24
ret
endp
 
;input:
; eax ¥á«¨ à ¢¥­: 0 - á®åà ­¥­¨¥ ¡¥§ ¤¨ «®£ , 1 - á®åà ­¥­¨¥ á ¤¨ «®£®¬
;description:
; äã­ªæ¨ï á®åà ­¥­¨ï ä ©« 
align 4
proc ted_but_save_file
;*** ¢ë§®¢ ¤¨ «®£®¢®£® ®ª­  ¤«ï á®åà ­¥­¨ï ä ©« 
or eax,eax
jnz .init_dlg
; á®å࠭塞 ¡¥§ ¢ë§®¢  ¤¨ «®£®¢®£® ®ª­ 
cmp byte[openfile_path],0
jne @f
.init_dlg:
; ¢ë§®¢ ¤¨ «®£®¢®£® ®ª­  ¤«ï á®åà ­¥­¨ï ä ©« 
copy_path open_dialog_name,communication_area_default_path,file_name,0
mov [OpenDialog_data.type],1
stdcall [OpenDialog_Start],OpenDialog_data
cmp [OpenDialog_data.status],1 ;if status==1 then save
jne .end_save
jmp @f
.no_dlg: ; á®å࠭塞 ¡¥§ ¢ë§®¢  ¤¨ «®£®¢®£® ®ª­ 
cmp byte[openfile_path],0
je .init_dlg ; ­® ¥á«¨ ¯ãâì ¯ãá⮩ â® ¢á¥-¦¥ ¢ë§ë¢ ¥¬
@@:
stdcall [ted_save_file],tedit0,run_file_70,openfile_path
.end_save:
220,9 → 223,9
align 4
proc mem_cpy uses ecx esi edi, destination:dword, source:dword, len:dword
cld
mov esi, dword[source]
mov edi, dword[destination]
mov ecx, dword[len]
mov esi,[source]
mov edi,[destination]
mov ecx,[len]
rep movsb
ret
endp
233,8 → 236,8
proc mem_spac uses eax ecx edi, mem:dword, len:dword
cld
mov al,' '
mov edi, dword[mem]
mov ecx, dword[len]
mov edi,[mem]
mov ecx,[len]
repne stosb
ret
endp