하드디스크 쓰기를 구현해보도록 하자. #function.h - HDDwrite() void HDDwrite(unsigned int sector, char* buffer) { unsigned char LBA_a = sector & 0xFF; unsigned char LBA_b = (sector >> 8) & 0xFF; unsigned char LBA_c = (sector >> 16) & 0xFF; unsigned char LBA_d = ((sector >> 24) & 0x0F) | 0xE0; __asm__ __volatile__ ( "mov al, 0;" "mov dx, 0x3F6;" "out dx, al;" ); while (HDD_BSY() == 1); __asm__ __volatile__ ( "mov..