summaryrefslogtreecommitdiffhomepage
path: root/src/setjmp/nt32/setjmp.s
blob: 1865f0cb03b79e3b67371c3f2c5be6aa066f10af (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
.text
.globl	___setjmp
.globl	__setjmp
.globl	_setjmp

___setjmp:
__setjmp:
_setjmp:
	pop  (%ecx)		# return address
	mov  %esp, 0x04(%ecx)	# caller's stack pointer
	push (%ecx)		# restore own stack pointer

	xor %eax,  %eax
	ret