.686
.model flat, c

option prologue:none
option epilogue:none

.code
switch_context proc
	pushad
	pushfd

	mov [ecx], esp
	mov esp, edx

	popfd
	popad
switch_context endp
end
