Subversion Repositories HelenOS-historic

Compare Revisions

Ignore whitespace Rev 352 → Rev 353

/SPARTAN/trunk/arch/ia32/src/asm.S
40,8 → 40,6
.global inb
.global inw
.global inl
.global outw
.global outl
.global memcpy
.global memsetb
.global memsetw
192,36 → 190,6
ret
 
 
## I/O output (word)
#
# Send a word to I/O port.
#
outw:
push %eax
 
movl 8(%esp),%edx
movl 12(%esp),%eax
outw %ax,%dx
 
pop %eax
ret
 
 
## I/O output (dword)
#
# Send a dword to I/O port.
#
outl:
push %eax
 
movl 8(%esp),%edx
movl 12(%esp),%eax
outl %eax,%dx
 
pop %eax
ret
 
 
## Copy memory
#
# Copy a given number of bytes (3rd argument)