함수호출 규약 (1) 썸네일형 리스트형 3. OS이미지 메모리에 복사 1. 1024 섹터 크기의 이미지를 메모리로 복사하는 코드 (1) C언어 #include int main(){ int iTotalSectorCount = 1024; int iSectorNumber = 2; int iHeadMumber = 0; int iTrackNumber = 0; // 실제 이미지를 복사할 address(물리주소) char* pcTargetAddress = (char*) 0x1000; while(1){ //전체 섹터 수를 하나씩 감소시키면서 0이 될때까지 섹터를 복사 if(iTotalSectorCount == 0){ break; } iTotalSectorCount = iTotalSectorCount - 1; // 1섹터를 읽어들여서 메모리 어드레스에 복사 // BIOSReadOneSec.. 이전 1 다음