summaryrefslogtreecommitdiff
path: root/Source/UnixUserland/write.c
blob: 3cd436b5f0e40142e2c38e510c9674097afa782e (plain) (blame)
1
2
3
4
5
6
7
8
9
10
int write(int file, char *ptr, int len) {
	int i;
	for (i = 0; i < len; i++) {
		int t = ptr[i];
		asm volatile("mov $0xFFFFFF01, %%eax;		\
				mov %0, %%ebx;						\
				int $64;" : : "r"(t));
	}
	return len;
}