Subversion Repositories Kolibri OS

Rev

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

Rev 1045 Rev 8960
Line 61... Line 61...
61
	.limit		dd	?
61
	.limit		dd	?
62
	.size = $	; must be dword-aligned
62
	.size = $	; must be dword-aligned
63
end virtual
63
end virtual
Line 64... Line 64...
64
 
64
 
65
edit_file:
65
edit_file:
66
	mov	eax, [ebp + panel1_files - panel1_data]
66
	mov	eax, [ebp + PanelData.files]
67
	mov	ecx, [eax+ecx*4]
67
	mov	ecx, [eax+ecx*4]
68
	test	byte [ecx], 10h
68
	test	byte [ecx], 10h
69
	jz	.file
69
	jz	.file
70
	ret
70
	ret
Line 105... Line 105...
105
	push	1
105
	push	1
106
	call	SayErr
106
	call	SayErr
107
	pop	eax
107
	pop	eax
108
	ret
108
	ret
109
.memok:
109
.memok:
110
	lea	esi, [ebp + panel1_dir - panel1_data]
110
	lea	esi, [ebp + PanelData.dir]
111
	push	eax
111
	push	eax
112
	push	ecx
112
	push	ecx
113
	mov	ecx, eax
113
	mov	ecx, eax
114
	shl	ecx, 12
114
	shl	ecx, 12
115
	mov	edx, editor_vtable
115
	mov	edx, editor_vtable
Line 121... Line 121...
121
	ret
121
	ret
122
@@:
122
@@:
123
	mov	[ebp + editor_data.memsize], ebx
123
	mov	[ebp + editor_data.memsize], ebx
124
	mov	al, [EditEOLStyle]
124
	mov	al, [EditEOLStyle]
125
	mov	[ebp + editor_data.eol], al
125
	mov	[ebp + editor_data.eol], al
126
	mov	eax, dword [esi + panel1_hPlugin - panel1_dir]
126
	mov	eax, dword [esi + panel1.hPlugin - panel1.dir]
127
	mov	[ebp + editor_data.hPlugin], eax
127
	mov	[ebp + editor_data.hPlugin], eax
128
	test	eax, eax
128
	test	eax, eax
129
	jz	.nocopyhostname
129
	jz	.nocopyhostname
130
	lea	edi, [ebp + editor_data.hostname]
130
	lea	edi, [ebp + editor_data.hostname]
131
	push	esi
131
	push	esi
132
	mov	eax, dword [esi + panel1_parents - panel1_dir]
132
	mov	eax, dword [esi + panel1.parents - panel1.dir]
133
	mov	esi, dword [esi + panel1_parents_sz - panel1_dir]
133
	mov	esi, dword [esi + panel1.parents_sz - panel1.dir]
134
	add	esi, eax
134
	add	esi, eax
135
@@:
135
@@:
136
	dec	esi
136
	dec	esi
137
	cmp	byte [esi-1], 0
137
	cmp	byte [esi-1], 0
138
	jz	@f
138
	jz	@f
Line 143... Line 143...
143
	stosb
143
	stosb
144
	test	al, al
144
	test	al, al
145
	jnz	@b
145
	jnz	@b
146
	pop	esi
146
	pop	esi
147
.nocopyhostname:
147
.nocopyhostname:
148
	mov	eax, dword [esi + panel1_hFile - panel1_dir]
148
	mov	eax, dword [esi + panel1.hFile - panel1.dir]
149
	mov	[ebp + editor_data.hFile], eax
149
	mov	[ebp + editor_data.hFile], eax
150
	mov	[ebp + editor_data.encoding], encodings.cp866
150
	mov	[ebp + editor_data.encoding], encodings.cp866
151
	xor	eax, eax
151
	xor	eax, eax
152
	mov	[ebp + editor_data.flags], al
152
	mov	[ebp + editor_data.flags], al
153
	inc	eax
153
	inc	eax