참조: outport() 하드웨어 포트에 2바이트나 1바이트를 출력 페이지 정보 작성자 이즈 댓글 0건 조회 864회 작성일 10-10-23 09:14 목록 본문 outport() 설명 하드웨어 포트에 2 바이트나 1 바이트를 출력 문법 #include<dos.h> void outport(int portid,int value);기능 portid : 출력 포트 value : 출력 포트에 출력할 값 이 함수는 portid 로 정해진 출력 포트로 value 에 의해 주어진 2 바이트의 하위 바이트를 출력하고 portid +1에 그 워드의 상위 바이트를 출력한다. dos.h 를 포함 하지않을 경우 outport 함수는 일반함수가 된다. 리턴값 사용법 #include<stdio.h> #include<dos.h> main(void) { int value = 'A'; int port =0; outport(port,value); printf("value %d port : %d",value,port); return 0; }; 값 댓글 0 댓글목록 등록된 댓글이 없습니다.