//SPARTAN/trunk/arch/ia32/src/asm.S |
---|
40,6 → 40,8 |
.global inb |
.global inw |
.global inl |
.global outw |
.global outl |
.global memcpy |
.global memsetb |
.global memsetw |
190,6 → 192,36 |
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) |