Subversion Repositories HelenOS-historic

Rev

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

Rev 1 Rev 348
Line 34... Line 34...
34
 
34
 
35
.global asm_delay_loop
35
.global asm_delay_loop
36
.global asm_fake_loop
36
.global asm_fake_loop
37
 
37
 
38
asm_delay_loop:
38
asm_delay_loop:
39
	pushl %ecx
-
 
40
	movl 8(%esp),%ecx	# move argument to %ecx
39
	movl 4(%esp),%ecx	# move argument to %ecx
41
0:	lahf
40
0:	lahf
42
	dec %ecx
41
	dec %ecx
43
	jnz 0b
42
	jnz 0b
44
	popl %ecx
-
 
45
	ret
43
	ret
46
 
44
 
47
asm_fake_loop:
45
asm_fake_loop:
48
	pushl %ecx
-
 
49
	movl 8(%esp),%ecx	# move argument to %ecx
46
	movl 4(%esp),%ecx	# move argument to %ecx
50
0:	lahf
47
0:	lahf
51
	dec %ecx
48
	dec %ecx
52
	jz 0b
49
	jz 0b
53
	popl %ecx
-
 
54
	ret
50
	ret