| 订阅 | 在线投稿
分享
 
 
当前位置: 王朝网络 >> c/c++ >> C语言的常用库函数使用方法分析及用途 C yu yan de chang yong ku han shu shi yong fang fa fen xi ji yong tu
 

C语言的常用库函数使用方法分析及用途

2008-06-01 02:07:13 编辑來源:互联网 繁體版 评论
 
 
本文为【C语言的常用库函数使用方法分析及用途】的汉字拼音对照版显示拼音
  absread()ducipanjueduishanquhanshu

  yuanxingint absread(int drive,int num,int sectnum,void *buf)

  gongnengcongdrivezhidingdequdongqicipanshangsectnumzhidingdeluojishanquhaokaishiduqu(tongguoDOSzhongduan0x25duqu)numge(zuiduo64Kge)shanqudeneirongchucunyubufsuozhidehuanchongquzhong

  shenshudrive=0duiyingApan,drive=1duiyingBpan

  fanhuizhi0:chenggong;-1:shibai

  touwenjiandos.h

  abswrite()xiecipanjueduishanquhanshu

  yuanxingint abswrite(int drive,int nsects,int lsect,void *buffer)

  drive=0(Aqudongqi)1(Bqudongqi)

  nsects=yaoxiedeshanqushu(zuiduo64Kge);

  lsect=qishiluojishanquhao;

  buffer=yaoxierushujudeneicunqishidizhi

  gongnengjiangzhidingneirongxieru(tiaoyongDOSzhongduan0x26)cipanshangdezhidingshanquji使shixierudedifangshicipandeluojijiegouwenjianFATbiaohemulujiegousuozaideshanquyezhaochangjinxing

  fanhuizhi0:chenggong;-1:shibai

  touwenjiandos.h

  atof()jiangzifuchuanzhuanhuanchengfudianshudehanshu

  yuanxingdouble atof(const char *s)

  gongnengbassuozhixiangdezifuchuanzhuanhuanchengdoubleleixing

  sgeshiwei:fuhaoshuzi.shuziEfuhaoshuzi

  fanhuizhizifuchuandezhuanhuanzhi

  touwenjianmath.hstdlib.h

  atoi()jiangzifuchuanzhuanhuanchengzhengxingshudehanshu

  yuanxingint atoi(const char *s)

  gongnengbassuozhixiangdezifuchuanzhuanhuanchengintleixing

  sgeshiwei:fuhaoshuzi

  fanhuizhizifuchuandezhuanhuanzhiruochucuozefanhui0

  touwenjianstdlib.h

  atol()jiangzifuchuanzhuanhuanchengchangzhengxingshudehanshu

  yuanxinglong atol(const char *s)

  gongnengbassuozhixiangdezifuchuanzhuanhuanchenglong intleixing

  sgeshiwei:fuhaoshuzi

  fanhuizhizifuchuandezhuanhuanzhiruochucuozefanhui0

  touwenjianstdlib.h

  bcd()bayigeshuzhuanhuanchengduiyingdeBCDmadehanshu

  yuanxingbcd bcd(int x)

  bcd bcd(double x)

  bcd bcd(double x,int decimals)

  zhuchongBCDmadejingdukeda17weishenshudecimalsshikexuandeyonglaizhidingzhuanhuanhouxiaoshudianhoudeweishu

  touwenjianbcd.h

  bdos()

  yuanxingint bdos(int fnum,unsigned dx,unsigned al)

  qizhongfnumshixitongtiaoyonghao;dxshichuangeijicunqiDXdezhi;alshichuangeijicunqiALdezhi;

  gongnengDOSxitongtiaoyong(INT21H)

  fanhuizhiAXzhongdezhi

  biosdisk()tiaoyongBIOScipanqudongchengxuhanshu

  yuanxing:char biosdisk(int cmd,int drive,int head,int track,int sector,int nsects,void *buffer)

  gongneng使shiyongzhongduan0x13zhijietiaoyongBIOSjinxingcipancaozuo

  shenshu(1)cmd:

  2-shujuyimeishanqu512zijiedegeshidurubufferqishishanquyouheadtrackhesectordingshanqushuyounsectsding

  3-jiangbufferzhongdeshujuanmeishanqu512zijiexierucipan

  4-duishanqujinxingshujuxiaoyan

  6-geshihuayigecipanbingduihuashanqushezhihuabiaozhi

  8-fanhuidangqianqudongqishenshuzaibufferdeqian4gezijiezhong

  10-changdumeishanquduru512zijiejiashangewaide4gezijie

  11-changxiemeishanquxieru512zijiejiashangewaide4gezijie

  (2)drive:0-diyigeruanqu;1-diergeruanqu;0x80-diyigeyingqu

  (3)head:citou

  (4)track:cidao

  (5)sector:shanqu

  (6)nsects:shanqushu

  (7)buffer:shujuhuanchongqudingyiweiunsigned char buffer[];

  fanhuizhi0x00-caozuochenggong

  0x01-cuowumingling

  0x03-qituxiejuyouxiebaohudecipan

  0x07-qudongqishenshushezhicuowu

  0x10-cipandu/CRC/ECCcuowu

  touwenjianbios.h

  zhuduiyuyingpanzhuyindaojilushanquhead=0,track=0,sector=1

  gengduoneirongqingkanC/C++jinjiejishuwendangzhuantihuo

  biosprint()tiaoyongBIOSdayinjiI/Ojiekoudehanshu

  yuanxingint biosprint(int cmd,int abyte,int port)

  gongnengtongguoBIOSzhongduan0x17zaiyoushenshuportzhidingdedayinjishangwanchenggezhongdayinjigongneng

  port=0(LPT1)

  =1(LPT2);

  

  

  cmd=0(dayinzifuabyte)

  1(chushihuadayinjiduankou)

  2(dudayinjizhuangtai);

  abyte=0-255;

  fanhuizhidayinjizhuangtai

  wei0(shebeichaoshi);wei3(I/Ochucuo);wei4(dayinjiyixuanze);wei5(meizhi);wei6(dayinjiqueren);wei7(bumang)

  touwenjianbios.h

  calloc()fenpeineicunhanshu

  yuanxingvoid *calloc(size_t nitems,size_t size)

  gongnengzaiduizhongfenpeiyikuaineicunjianggaineicundeneirongquanbuqing0

  fanhuizhifanhuizhixiangxinfenpeineicundezhizhenkongjianbugouzefanhuiNULL

  touwenjianstdlib.hcalloc.h

  ceil()

  yuanxingdouble ceil(double num)

  gongnengqiubuxiaoyunumdezuixiaoshuangjingduzhengshu

  touwenjianmath.h

  cgets()duzifuchuanhanshu

  yuanxingchar *cgets(char *str)

  gongnengcongkongzhitaiduruyigezifuchuanbingjianggaizifuchuan(hezifuchuanchangdu)cunruyoustrsuozhixiangdedizhizhong

  zhuchongzaitiaoyongcgetszhiqianbixujiangyaodurudezifuchuanzuidachangducunrustr[0]zhongfanhuishistr[1]beishezhiweishijidurudezifushushijizifuchuanneirongcongstr[2]kaishiyikongzifu(\0)jieyi

  fanhuizhizhixiangstr[2]dezhizhen

  touwenjianconio.h

  chdir()gaibiandangqianmuludehanshu

  yuanxingint chdir(const char *path)

  gongnengbayoupathzhidingdemulugaiweidangqianmulupathshenshuzhongkeyizhidingqudongqihaorua:\\ddd, danzhishigaibiangaiqudongqishangdedangqianmuluduidangqianhuodongqudongqishangdedangqianmuluwuyingxiang

  fanhuizhi0(chenggong);-1(shibai)

  touwenjiandir.h

  _chmod()gaibianwenjiancunququanxiandehanshu

  yuanxingint _chmod(const char *path,int func[,int attrib])

  gongnengduqu(func=0shi)huoshezhi(func=1shi)DOSwenjianshuxing

  attrib=FA_RDONLY zhidu

  attrib=FA_HIDDEN yincangwenjian

  attrib=FA_SYSTEM xitongwenjian

  attrib=FA_LABLE juanbiao

  attrib=FA_DIREC mulu

  attrib=FA_ARCH dangan

  fanhuizhishibaishifanhui-1chenggongshifanhuiwenjiandeshuxingzijie,jiaru fanhuizhi&FA_RDONLY budengyu0,zewenjianshizhiduwenjian;......

  touwenjianio.hdos.h

  chmod()gaibianwenjiancunququanxiandehanshu

  yuanxingint chmod(const char *path,int amode)

  gongnenggenjuamodedezhishezhiyoupathsuozhiwenjiandecunququanxian

  amodedezhicunququanxian

  S_IWRITE dayingxie

  S_IREADdayingdu(zhidu)

  S_IREADS_IWRITE kedukexie

  fanhuizhi0(chenggong);-1(shibai)

  touwenjianio.hsys\stat.h

  clock()

  yuanxinglong clock(void)

  gongnengcedecongchengxukaishidaotiaoyongchuchulijisuoyongdeshijian

  touwenjiantime.h

  gengduoneirongqingkanC/C++jinjiejishuwendangzhuantihuo

  

   close()guanbiwenjianhanshu

  yuanxing:int close(int handle)

  

  

  gongnengguanbiyouwenjianjubingsuozhixiangdewenjianjubingshitiaoyong_creatcreatcreatnewcreattempdupdup2_openhuoopenshidedaodegaihanshubingbuzaiwenjianmoyixieyigeCtrl-Zzifujiaruxiangyonggaizifujieshuwenjianbixuxianshidigeichugaizifu

  fanhuizhi0(chenggong);-1(shibai)

  touwenjianio.h

  closegraph()guanbituxinghanshu

  yuanxingvoid far closegraph(void)

  gongnengshifangtuxingxitongfenpeidesuoyouneicunjiangpingmuhuifudaotiaoyonginitgraphzhiqiandemoshi

  touwenjiangraphics.h

  cos()

  yuanxingdouble cos(double arg)

  gongnengjisuanarg(hudu)deyuxianzhi

  touwenjianmath.h

  ctrlbrk()shezhictrl-breakchulichengxudehanshu

  yuanxingvoid ctrlbrk(int(*handle)(void))

  gongnengxiugaizhongduanxiangliang0x23,使shiyongxindectrl-breakzhongduanchulihanshu

  yongfactrlbrk(hanshuming);

  xiandingyihanshu:int hanshuming(void){...}

  touwenjiandos.h

  delay()zantinghanshu

  yuanxingvoid delay(unsigned milliseconds)

  gongnengzantingdangqiansuozhixingdechengxumillisecondshaomiao

  touwenjiandos.h

  disable()pingbizhongduandehong

  yuanxingvoid disble(void)

  gongnengpingbizhongduanzhidayingcongwaibushebeilaidebukepingbizhongduan(NMI)

  touwenjiandos.h

  enable()kaiyingjianzhongduandehong

  yuanxingvoid enable(void)

  gongnengkaifangzhongduandayingjieshourenheshebeichanshengdezhongduan

  touwenjiandos.h

  exec()jiazaibingyunxingqitachengxudehanshuzu

  execl(),execle(),execlp(),execlpe(),

  execv(),execve(),execvp(),execvpe()

  yuanxing int execl(char *path,char *arg0,*arg1,...,*argn,NULL)

  int execle(char *path,char *arg0,*arg1,...,*argn,NULL,char **env)

  int execlp(char *path,char *arg0,*arg1,...,*argn,NULL)

  int execlpe(char *path,char *arg0,*arg1,...,*argn,NULL,char **env)

  int execv(char *path,char *argv[])

  int execve(char *path,char *argv[],char **env)

  int execvp(char *path,char *argv[])

  int execvpe(char *path,char *argv[],char **env)

  qizhongpathshitiaoyongdezichengxudewenjianmingzaiexechoumiandehouzhuijuyoumouzhonggongneng

  pbiaoshihanshunenggouzaiyouDOShuanjingbianliangPATHdemuluzhongsousuozijinchengwenjianjiarupathzhongweizhimingwenjiansuozaimuluhanshujiangshouxianzaidangqianmuluzhongzhaoranhouzaiDOShuanjingbianliangzhidingdemuluzhongzhao

  lbiaoshishenshuzhizhen(arg0,...,argn)andandushenshuchuansongdangyuxianzhidaoyaochuansongdeshenshugeshushitongchangyongdaihouzhuildehanshu

  vbiaoshishenshuzhizhen(arg0,...,argn)anzhizhenshuzuchuansongdangyaochuansongdeshenshukebianshi使shiyongdaihouzhuivdehanshu

  ebiaoshishenshuenvkeyichuansongdaozijinchenggaihanshukeyonglaixiugaizijinchengdehuanjingruowuehouzhuizijinchengjiangjixufujinchengdehuanjing

  zhuchongarg0+...+argn,huoarg[0]+...+arg[n]dezongchangdubixuxiaoyu128zijiedangtiaoyongexechanshushiyuanxianyijingdakaidewenjianzaizijinchengzhongrengranshidakaide

  gongnengjiazaibingyunxingqitachengxutiaoyongshibixuyouzugoudeneicunkongjianyongyujiazaihezhixingzichengxuzichengxujiangfugaifuchengxu

  touwenjianprocess.h

  gengduoneirongqingkanC/C++jinjiejishuwendangzhuantihuo

  farcalloc()congyuanduizhongfenpeineicundehanshu

  yuanxingvoid far *farcalloc(unsigned long nunits,unsigned long unitsz)

  gongnengcongyuanduizhongweibaohannunitsgeyuansudeshuzufenpeineicunmeiyiquunitszzijiechang

  yongfafptr=farcalloc(shumusizeof(char));

  

  

  xiandingyichar far *fptr;

  zhuchongsuoyoukeyongRAMnengbeifenpei;dayu64Kdekuainengbeifenpei;yongyuanzhizhencunqugaikuaiweimoshibunengyong

  fanhuizhifanhuizhixiangxinfenpeikuaidezhizhenruoneicunbugouzefanhuiNULL

  touwenjianalloc.h

  farfree()congyuanduizhongshifangyikuaiyifenpeineicundehanshu

  yuanxingvoid farfree(void far *block)

  touwenjianalloc.h

  farmalloc()congyuanduizhongfenpeineicundehanshu

  yuanxingvoid far *farmalloc(unsigned long nbytes)

  使shiyongfangshifptr=farmalloc(zijieshu);

  xiandingyichar far *fptr;

  gongnengcongyuanduizhongfenpeichangnbyteszijiedeneicun

  zhuchongsuoyoukeyongRAMnengbeifenpei;dayu64Kdekuainengbeifenpei;yongyuanzhizhencunqugaikuaiweimoshibunengyong

  fanhuizhifanhuizhixiangxinfenpeineicundezhizhenruoneicunbugouzefanhuiNULL

  touwenjianalloc.h

  farrealloc()tiaozhengyuanduizhongyifenpeikuaidehanshu

  yuanxingvoid far *farrealloc(void far *oldblock,unsigned long nbytes)

  fanhuizhifanhuitiaozhenghoudexinneicundizhiruobunengchongxinfenpeizefanhuiNULL

  touwenjianalloc.h

  fclose()guanbiyigeliuhanshu

  yuanxingint fclose(FILE *stream)

  使shiyongfangshifclose(wenjianzhizhenming);qizhongwenjianzhizhenming=fopen();

  gongnengguanbizhidingdeliuguanbiqianqingchusuoyouyustreamxiangliandehuanchongqushifangxitongfenpeidehuanchongqudanyousetbufshezhidehuanchongqubunengzidongshifang

  fanhuizhi0(chenggong);EOF(shibai)

  touwenjianstdio.h

  fcloseall()guanbidakaideliudehanshu

  yuanxingint fcloseall(void)

  gongnengguanbisuoyoudakaideliuyoustdinstdoutstdprnstderrhestdauxshezhideliuchuwai

  fanhuizhiguanbiliudezongshujiarufaxiancuowuzefanhuiEOF

  touwenjianstdio.h

  feof()jianchawenjianshifoujieshudehanshu

  yuanxingint feof(FILE *fp)

  fanhuizhiwenjianjieshufanhuifei0zhifouzefanhui0

  touwenjianstdio.h

  fgets()congliuzhongduquyizifuchuandehanshu

  yuanxingchar *fgets(char s[],int n,FILE *stream)

  使shiyonggeshifgets(zifuchuanzhizhenzifugeshuwenjianzhizhen)

  gongnengcongshuruliustreamzhongduruzifucundaoschuanzhongdangdulen-1gezifuhuopengdaohuanxingfushihanshutingzhiduguochengfgetszaischuanyibaoliuhuanxingzifudurudezuihouyigezifuhoumianjiayigekongzifu

  fanhuizhichenggongshifanhuizifuchuanshenshus,chucuohuopengdaowenjianjieshushifanhuiNULL

  touwenjianstdio.h

  findfirst()hanshuhefindnext()hanshu

  tiaoyongfangshizhengxingshu=findfirst(wenjianming,&jiegoubianliangming,shuxingchangshuzuhe(ru0x26));qizhongdingyistrUCt ffblk jiegoubianliangming;

  yuanxingint findfirst(path,buffer,attr)heint findnext(buffer)

  char *path;//yaojiansuodewenjianming

  struct ffblk

  {

  char ff_reserved[21];

  char ff_attrib;//beijiansuodewenjianshuxing

  unsigned ff_ftime;//zuihouxiugaideshijian

  //(0-4wei:miaoshu/2;5-10wei:fenshu;11-15wei:xiaoshishu)

  unsigned ff_fdate;//zuihouxiugaideriqi

  //(0-4weiri;5-8weiyue;9-15weinianjian1980)

  long ff_fsize;//wenjiandaxiao

  char ff_name[13];//zuming

  }*buffer;

  int attr;//yaojiansuodewenjianshuxing

  gongnengjiansuoyoupathheattrzhidingdewenjianbajieguofanhuidaobufferfindfirstfanhuiguanyudiyigezhidingwenjiandexinxifindnextjixujiansuo

  fanhuizhi0(jiansuochenggong),-1(meiyouzhaodaozhidingdewenjian)

  shuxingchangshu

  FA_NORMAL(0x00)hanyiNormal file, no attributes

  FA_RDONLY(0x01)hanyizhidu

  FA_HIDDEN(0x02)hanyiyinhanwenjian

  FA_SYSTEM(0x04)hanyixitongwenjian

  FA_LABEL(0x08) hanyijuanbiao

  FA_DIREC(0x10) hanyizimulu

  FA_ARCH(0x20)hanyixiugaidewenjianArchive

  touwenjiandir.h(dos.h)

  gengduoneirongqingkanC/C++jinjiejishuwendangzhuantihuo

  

   floodfill()tianchongquyudehanshu

  yuanxingvoid far floodfill(int x,int y,int border)

  

  

  gongnengzaituxingshebeishangyongyanseborderweiqilaidequyujiangyongdangqiantianchongyansetianchong(x,y)shidaitianchongquyudeqidianruoqidianzaifengbiquyuneizequyuneibeitianchong;ruoqidianzaifengbiquyuwaizequyuwaibeitianchong

  touwenjiangraphics.h

  floor()

  yuanxingdouble floor(double num)

  gongnengqiubudayunumdezuidashuangjingduzhengshu

  touwenjianmath.h

  fnmerge()jianliwenjianlujinghanshu

  yuanxingvoid fnmerge(char *path,const char *drive,const char *dir, const char *name,const char *ext)

  gongnenghechengdrive:\dir\name.extfangzaipath

  touwenjiandir.h

  fnsplit()fenjiewanzhengdelujingminghanshu

  yuanxing:int fnsplit(char *path,const char *drive,const char *dir,const char *name,const char *ext)

  gongnengbawenjianminglujingpathfencheng4gebufencunfang

  qizhongdrivezhongyoumaohao;dirzhongyoukaishihejieyidefanxiegang;extbaokuokaishiyuandian

  fanhuizhijiaruyoukuozhanmingzefanhuizhi&EXTENSION!=0

  jiaruyouwenjianmingzefanhuizhi&FILENAME!=0

  jiaruyoumulumingzefanhuizhi&DirectorY!=0

  jiaruyouqudongqihaozefanhuizhi&DIRVE!=0

  touwenjiandir.h

  fopen()dakaiyigeliuhanshu

  yuanxingFILE *fopen(const char *filename,const char *mode)

  gongnengdakaiyongfilenamezhidingdewenjianbing使shiqiyuyigeliuxianglian

  使shiyongfangshiwenjianzhizhenming=fopen("wenjianming","chulifangshi")

  "chulifangshi"qu

  "rt"dakaiyigewenbenwenjianzhinengdu

  "wt"shengchengyigewenbenwenjianzhinengxieruowenjiancunzaizebeichongxie

  "at"dakaiyigewenbenwenjianzhinengzaiwenjianyibutianjia

  "rb"dakaiyigeerjinzhiwenjianzhinengdu

  "wb"shengchengyigeerjinzhiwenjianzhinengxie

  "ab"dakaiyigeerjinzhiwenjianzhinengzaiwenjianyibutianjia

  "rt+" dakaiyigewenbenwenjiankedukexie

  "wt+" shengchengyigewenbenwenjiankedukexie

  "at+" dakaiyigewenbenwenjiankeduketianjia

  "rb+" dakaiyigeerjinzhiwenjiankedukexie

  "wb+" shengchengyigeerjinzhiwenjiankedukexie

  "ab+" dakaiyigeerjinzhiwenjiankeduketianjia

  fanhuizhizhimingliudezhizhen(chenggongshi)huoNULL(shibaishi)

  zhuxuxiandingyi FILE *wenjianzhizhenming;

  "wenjianming"ruoyong argv[1]daitizeke使shiyongminglingxingxingshizhidingwenjianming

  FP_OFF()huoquyuandizhipianyiliangdehong

  yuanxingunsigned FP_OFF(void far *p)

  gongnengqudeheshezhiyuanzhizhen*pdepianyiliang

  fanhuizhipianyiliang

  touwenjiandos.h

  fprintf()chuansongshuchudaoyigeliuzhongdehanshu

  yuanxingint fprintf(FILE *stream,const char *format[,argument,...])

  gongnengxiangwenjianzhizhenzhixiangdewenjianshuchuASCdaima

  xiangxianshiqishuchucuowuxinxi

  使shiyongxingshi

  fprintf(wenjianzhizhen"shuchugeshi"shuchuxiangxilie);

  fprintf(stderr,"cuowuxinxi");

  使shiyongshilifprintf(stream,"%d %c %f",i,c,f);

  qizhongdingyiFILE *stream;

  int i;char c;float f;

  fanhuizhichenggongzefanhuishuchudezijieshucuowuzefanhuiEOF

  touwenjianstdio.h

  gengduoneirongqingkanC/C++jinjiejishuwendangzhuantihuo

  FP_SEG()huoquyuandizhiduanzhidehong

  yuanxingunsigned FP_SEG(void far *p)

  gongnengqudeheshezhiyuanzhizhen*pduandizhizhi

  fanhuizhiduandizhizhi

  touwenjiandos.h

  free()shifangyifenpeineicundehanshu

  yuanxingvoid free(void *block)

  

  

  gongnengshifangyoucallocmallocreallochanshutiaoyongsuofenpeideneicun

  touwenjianstdlib.halloc.h

  fscanf()geshihuashuruhanshu

  yuanxingint fscanf(FILE *stream,const char *format[,address,...])

  gongnengcongyigeliuzhongsaomiaoshuruziduanyicisaomiaoyigezifumeigeshuruziduangenjuformatsuozhigeshizhishifugeshihuahoubashuruziduancunzaiformathoumianyoudizhishenshugeichudeweizhishang

  使shiyonggeshifscanf(wenjianzhizhen,"shurugeshi",shuruxiangxilie);

  使shiyongshilifscanf(fp,"%d",&b);

  congfpzhixiangdewenjianzhongduqushijinzhizhengshu (ASCxingshi)fuyubianliangb

  zhudangwenjianzhizhenshistdinshiyuscanfgongnengwanquanxiangtong

  touwenjianstdio.h

  fseek()yidongwenjianzhizhenhanshu

  yuanxingint fseek(FILE *stream,long offset,int whence)

  zuoyongqiangzhiyigewenjiandeweizhizhizhenzhixiangmougetedingdeweizhi(shenzhichaochuwenjiandeyibu)

  使shiyonggeshifseek(*wenjianzhizhenpianyi(changzhengxing)qidian)

  dingyi FILE *wenjianzhizhenming;

  "qidian"quzhi

  0huoSEEK_SET(biaoshiwenjiankaitou)

  1huoSEEK_CUR(biaoshidangqianweizhi)

  2huoSEEK_END(biaoshiwenjianyiduan)

  fanhuizhi0biaoshichenggongfei0zhibiaoshishibai

  touwenjianstdio.h

  fwrite()bashenshuxieruliuzhongdehanshu

  yuanxingsize_t fwrite(const void *ptr,size_t size,size_t n,FILE *stream)

  gongnengfujiangeshujuxiang(meigeshujuxiangchangduweisizegezijie)daozhidingdeshuchuwenjianhoushujucongptrchukaishitianjiaptrshizhixiangrenyiduixiangdezhizhen

  fanhuizhitiaoyongchenggongshifanhuishijixiedeshujuxiangshuchucuoshifanhuiyiduanzhengxingshuzhi

  touwenjianstdio.h

  lifwrite(&s,sizeof(s),1,stream);

  qizhongsshiyijiegoubianliangstream=fopen();

  gcvt()bashuangjingdushuzhuanhuachengzifuchuandehanshu

  yuanxingchar*gcvt(value,ndigit,buf)

  qizhongdouble valueshidaizhuanhuashu

  int ndigitshizhuanhuachangdu

  char *bufbaocunzhuanhuahoudedizhi

  touwenjianstdlib.h

  geninterrupt()zhixingzhongduanhanshu

  yuanxingvoid geninterrupt(int n)

  tiaoyongfangshigeninterrupt(ruanzhongduanhao)

  gongnengchanshengyige8086ruanzhongduan

  zhuxuxianxiangjicunqichuandirukouxinxi(yongweibianliang)

  liruweibianliang=yaofudezhi(rukouxinxi);

  tiaoyonggeninterrupt()hanshuhoudejieshouchukouxinxi

  lirubianliangming=weibianliang

  weibianliangTurbo C daying使shiyongweibianliangzhijie访fangwenxiangyingde8086jicunqiweibianliangdeleixingyouliangzhong

   unsigned int : _AX _BX _CX _DX _CS _DS _SS _ES_SP _BP _DI _SI

   unsigned char: _AL _AH _BL _BH _CL _CH _DL _DH

  gengduoneirongqingkanC/C++jinjiejishuwendangzhuantihuo

  

   getc()congliuzhongquzifudehong

  yuanxingint getc(FILE *stream)

  gongnengfanhuishuruliustreamzhongyigezifuyidongwenjianzhizhen使shizhizhixiangxiayigezifu

  使shiyonggeshizifubianliang=getc(wenjianzhizhen)

  (zhengchangqingkuangxiaduqudaodaimazhidudaowenjianyihuochucuoshifanhuiEOF)

  

  

  zhuxudingyi char zifubianliang;FILE *wenjianzhizhen;

  touwenjianstdio.h

  getch()congjianpanwuhuixiandiduquyizifudehanshu

  gongnengjiangjianpanshangshurudedangezifudezhi(ASC ma)mashangfugeizifuxingbianliang

  tiaoyongfangshizifuxingbianliang=getch()

  zhuxuxiandingyi char zifuxingbianliang;

  touwenjianconio.h

  getchar()congstdinliuzhongduquyigezifudehanshu

  gongnengjiangjianpanshangshurudedangezifudezhi(ASC ma)huichehoufugeizifuxingbianliang

  tiaoyongfangshizifuxingbianliang=getchar()

  zhuxuxiandingyi char zifuxingbianliang;

  touwenjianstdio.h

  getcurdir()duquzhidingqudongqidedangqianmuludehanshu

  yuanxingint getcurdir(int drive,char directory)

  drive=0(quesheng);1(Aqudongqi);...

  directoryyonglaicunfangmulumingbubaokuoqudongqimingbuyifanxiegangkaishi

  fanhuizhi0(tiaoyongchenggong);1(chucuo)

  touwenjiandir.h

  getcwd()duqudangqianmuludehanshu

  yuanxingchar *getcwd(char *buf,int buflen)

  gongnengduqudangqianmuludewanzhenglujingming(baokuoqudongqiming)zuichangweibuflengezijiecunfangzaibufzhongjiarubufweiNULLhanshujiangfenpeiyigebuflenzijiechangdehuanchongquyihoukejiangbenhanshudefanhuizhizuoweifreehanshudeshenshulaishifanggaihuanchongqu

  fanhuizhiruobuffeikongtiaoyongchenggongfanhuibuf,chucuofanhuiNULL;ruobufweiNULL,fanhuizhixiangyijingfenpeideneicunhuanchongqudizhi

  touwenjiandir.h

  getdate()duquxitongriqihanshu

  yuanxing:void getdate(pdate)

  struct date

  {

  int da_year;

  int da_day;

  int da_mon;

  };

  struct date *pdate;

  touwenjiandos.h

  getdfree()duqucipankongxiankongjiandehanshu

  yuanxingvoid getdfree(drive,dtable)

  unsigned char drive;qudongqihao(0-dangqian;1-A;2-B;...)

  struct dfree

  {

  unsigned df_avail;//ke使shiyongdecushu

  unsigned df_total;//meigequdongqidecushu

  unsigned df_bsec;//meigeshanqudezijieshu

  unsigned df_sclus;//meigecudeshanqushu(chucuoshifanhui0xffff)

  }*dtable;

  gongnengbayoudrivezhidingdeguanyuqudongqidexinxifanhuidaodtable

  getdisk()duqudangqiancipanqudongqihaohanshu

  yuanxingint getdisk(void)

  gongnengqudedangqianqudongqihao(0=A;1=B;....)

  touwenjiandir.h

  gengduoneirongqingkanC/C++jinjiejishuwendangzhuantihuo

  getenv()duquhuanjingbianliangdedangqianzhidehanshu

  yuanxingchar *getenv(const char *name)

  yongfas=getenv("huanjingbianliangming");

  xuxiandingyichar *s;

  

  

  gongnengfanhuiyigeidingdehuanjingbianliangzhihuanjingbianliangmingkedaxiehuoxiaoxiejiaruzhidingdebianliangzaihuanjingzhongweidingyizefanhuiyikongchuan

  touwenjianstdlib.h

  getimage()jiangzhidingquyudeweituxiangcunruneicundehanshu

  yuanxingvoid far getimage(int left,int top,int right,int bottom,void far *bitmap)

  gongnengjiangtuxiang(juxingquyu)congpingmukaobeidaoneicun*bitmapzhixiangneicunzhongcunfangtuxiangdequyugaiquyudeqianlianggezijieyongyucunfangjuxingdegaohekuan

  touwenjiangraphics.h

  getmaxx()fanhuipingmushangzuidadeXzuobiaozhidehanshu

  yuanxingint far getmaxx(void)

  gongnengfanhuidangqiantuxingqudongchengxuhetuxingmoshixiazuidadeXzuobiaozhi

  touwenjiangraphics.h

  getmaxy()fanhuipingmushangzuidadeYzuobiaozhidehanshu

  yuanxingint far getmaxy(void)

  gongnengfanhuidangqiantuxingqudongchengxuhetuxingmoshixiazuidadeYzuobiaozhi

  touwenjiangraphics.h

  getpixel()duquxiangsuyansedehanshu

  yuanxingunsigned far getpixel(int x,int y)

  touwenjiangraphics.h

  getpsp()

  yuanxingunsigned getpsp(void)

  gongneng使shiyongDOSxitongtiaoyong0x62fanhuichengxuduanqianzhui(PSP)deduandizhi

  touwenjiandos.h

  gets()congbiaozhunshuruliustdiozhongduquyizifuchuandehanshu

  gongnengjiangjianpanshangshurudezifuchuanmashangfuyuzifuchuanbianliangbingxianshichulai

  tiaoyongfangshigets(zifuchuanbianliangming)

  zhuxudingyi char *zifuchuanbianliangming;

  gettime()duquxitongshijiandehanshu

  yuanxingvoid gettime(ptime)

  struct time

  {

  unsigned char ti_min;

  unsigned char ti_hour;

  unsigned char ti_hund;//baifenzhiyimiao

  unsigned char ti_sec;

  };

  struct time *ptime;

  getvect()duquzhongduanxianglianghanshu

  yuanxingvoid interrupt(*getvect(int interruptno))

  gongnengduruyouinterruptno(0-255zhijian)suozhidingdezhongduanxiangliangzhibingbagaizhongduanxiangliangzhizuoweizhongduanhanshudeyuanzhizhenfanhui

  fanhuizhizhidingzhongduanxiangliangdedangqian4zijiezhi

  touwenjiandos.h

  使shiyongshilioldfunc=getvect(5);

  xiandingyivoid interrupt(*oldfunc)();

  yonghouhuifusetvect(5,oldfunc);

  getx()fanhuidangqiantuxingfangshixiaweizhideXzuobiaozhidehanshu

  yuanxingint far getx(void);

  touwenjiangraphics.h

  gety()fanhuidangqiantuxingfangshixiaweizhideYzuobiaozhidehanshu

  yuanxingint far gety(void);

  touwenjiangraphics.h

  imagesize()fanhuibaocuntuxianghuanchongqudaxiaodehanshu

  yuanxingunsigned far imagesize(int left,int top,int right,int bottom)

  gongnengquedingbaocuntuxiangsuoxudecunchuqudaxiao

  fanhuizhifanhuicunchuqudedaxiao(zijie)ruosuoxuneicundayudengyu64K-1zijiezefanhui0xffff(-1)

  touwenjiangraphics.h

  gengduoneirongqingkanC/C++jinjiejishuwendangzhuantihuo

  

   initgraph()xianshimoshikongzhihanshu(chushihuatuxingxitonghanshu)

  gongnengbatuxingshipeiqishezhiweiyizhongtuxingmoshijiangxuanzedetuxingqudongchengxu(zaiBGIwenjianzhong)zhuangrudaoneicun

  tiaoyongfangshi

  void far initgraph(int far *driver,int far *mode,char far*path)

  

  

  qizhong: *driverkeyishishuzhi(0-10)yekeshifuhaozhi(DETECTCGAMCGAEGAEGA64EGAMONORESERVEDHERCMONOATT400VGA PC3270)

  *modeshenshucongtuxingxitongweigezhongchangyongdetuxingshipeiqishezhidetuxingmoshizhong(CGAC0IBM8514HI--jiantouwenjiangraphics.h)xuanquchangyongdeyou:VGAMEDhuo1(640×350)(dengxiaoyuBIOSdemoshi15)EGAHIhuo1(640×350)deng

  pathzhixiangdezifuchuanweizhuangruqudongchengxudelujingjiaruqueshenglujingqudongchengxuzaidangqianmulu

  jieshufangfa

  void far closegraph()hanshuyongyudangchengxuhuanyaojixuzaizifumoxiayunxingshitashifangyoutuxinghanshusuozhanyongdeneicuntongshibapingmumoshihuifuweitiaoyonginitgraph()zhiqiandemoshi

  void far restorecrtmode()hanshuyongyujieshuyunxingjiangtuxingshipeiqishezhidaoyuanlaidemoshirenhefenpeideneicundoujiangzidongshifang

  touwenjiangraphics.h

  inport()congduankouzhongduruyigezidehanshu

  yuanxingint inport(int portid)

  tiaoyongfangshizhengxingbianliang=inport(0xduankouhao);

  gongnengcongzhidingduankoudizhiduyigezi

  touwenjiandos.h

  inportb()congduankouduruyigezijiedehanshu

  yuanxingunsigned char inportb(int portid)

  tiaoyongfangshizifubianliang=inportb(0xduankouhao);

  gongnengcongzhidingduankoudizhiduyigezijie

  touwenjiandos.h

  int86()zhixingzhongduanhanshu(tiaoyong8086ruanzhongduanhanshu)

  yuanxingint int86(int intno,union REGS *inregs,union REGS *outregs)

  tiaoyongfangshiint86(zhongduanhao,&shuruzhizhenming,&shuchuzhizhenming)

  fanhuizhizhongduanchulijieshushideAXjicunqidezhicuowushioutregs->x.cflag!=0

  gongnenghanshuint86() yonglaizhixingzhidingde8086ruanzhongduanshouxianbashuruzhizhensuozhidegongyongtizhongdeneirongkaobeidaoCPU dejicunqizhongsuijichanshengduiyingdezhongduanfanhuihoujiangCPUjicunqi(AX)deneirongkaobeidaoshuchuzhizhenzhixiangdegongyongtizhongzai使shiyongint86() hanshujinxingBIOSjiekoudexitongtiaoyongshiyoudezhongduantiaoyongsheyouruoganxuanzexiangzhexiexuanzexiangkeyigenjutiaoyongshiAHjicunqizhongdezhilaijinxing访fangwen

  zhu1.xuxiandingyi union REGS shuruzhizhenmingshuchuzhizhenming;

  2.xiangjicunqichuandirukouxinxi

  shuruzhizhenming.x.jicunqiming=yaofudezhi(rukouxinxi);

  3.tiaoyongint86houdejieshouchukouxinxi

  bianliangming=shuchuzhizhenming.x.jicunqiming

  4.REGSdedingyi(zaidos.hzhong)

  struct WordREGS{unsigned int ax, bx, cx, dx, si, di, cflag, flags;}

  struct BYTEREGS{unsigned char al, ah, bl, bh, cl, ch, dl, dh;}

  union REGS{struct WORDREGS x;struct BYTEREGS h;}

  touwenjiandos.h

  int86x()zhixingzhongduanhanshu (tongyong8086ruanzhongduanjiekouhanshu)

  touwenjiandos.h

  yuanxingint int86x(int intno,union REGS *inregs,union REGS *outregs,struct SREGS * segregs)

  tiaoyongfangshiint86x(zhongduanhao,&shuruzhizhenming,&shuchuzhizhenming,&duanjicunqizhizhenming);

  zhu1:xuxiandingyi union REGS shuruzhizhenmingshuchuzhizhenming;

  union REGS shiyitu

  structstruct

  WORDREGSBYTEREGS

  

   al 1 byte

   ax 2 bytes

   ah

  

   bl

   bx

   bh

  

   cl

   cx

   ch

  

   dl

   dx

   dh

  union regs

  

   si

  

  

  

   di

  

  

  

   cflag

  

  

  

   flags

  

  

  xlianggejiegoubianliangh

  gongxiangtongyicunchuyu

  qizhongziduanflagsduiyingyubiaozhijicunqiziduancflagjinduiyingyujinweibiaozhiweihanshuzaitiaoyongshibuyonggaiziduanzhizaifanhuishishezhizhegeziduanyinweixuduoBIOSfuwudoushitongguojinweibiaozhiwei0huanshi1laibiaoshichenggonghuanshishibai

  zhu2:xuxiandingyi struct SREGS duanjicunqizhizhenming;

  jiegouSREGSdingyiruxia

  struct SREGS {unsigned int es,cs,ss,ds}

  hanshuzhiyonglegaijiegouzhongdeduanjicunqiDSheEStiaoyongshigenjutamendezhishezhiDSheEStongshibaDSheESyuanlaidezhibaocunzaizhegejiegouzhongfanhuishizaihuifuDSheESweiyuanlaidezhizhejiudayingchengxu使shiyongyuanzhizhenhuodashujubianyimoshi

  gaihanshuzhiquanjubianliang_doserrnodengyujicunqiAXzhongdezhiqifanhuizhiyedengyuAXzhongdezhi

  zhu3xiangjicunqichuandirukouxinxi

  shuruzhizhenming.x.jicunqiming=yaofudezhi(rukouxinxi);

  zhu4tiaoyongint86xhoudejieshouchukouxinxi

  bianliangming=shuchuzhizhenming.x.jicunqiming

  intdos()tongyongdoszhongduanjiekouhanshu

  yuanxingint intdos(inregs,outregs)

  union REGS *inregs;//tiaoyongshidegejicunqidezhi

  union REGS *outregs;//fanhuijicunqidezhi

  gongnengchanshengDOSruanzhongduan

  zhuchongjiaruxuyaogongnenghaozezhuangruAH;jiaruxuyaozigongnenghaozezhuangruAL

  touwenjiandos.h

  gengduoneirongqingkanC/C++jinjiejishuwendangzhuantihuo

  

   intdosx()tongyongdoszhongduanjiekouhanshu

  yuanxingint intdosx(inregs,outregs,segregs)

  union REGS *inregs;tiaoyongshidegejicunqidezhi

  union REGS *outregs;fanhuijicunqidezhi

  struct SREGS *seregs;tiaoyongshideduanjicunqidezhi(huanshezhifanhuishidezhi)

  

  

  gongnengchanshengDOSruanzhongduan

  touwenjiandos.h

  intr()zhixing8086ruanzhongduanhanshu(gaibianruanzhongduanjiekouhanshu)

  yuanxingvoid intr(int intno,struct REGPACK *preg)

  tiaoyongfangshiintr(zhongduanhao,&jiegoubianliangming)

  zhu1jiegouREGPACKdingyiruxia

  struct REGPACK

  {

  unsigned r_ax,r_bx,r_cx,r_dx;

  unsigned r_bp,r_si,r_di,r_ds,r_es,r_flag;}

  zhu2使shiyongshixiandingyiyigejiegoubianliang

  struct REGPACK jiegoubianliangming;

  zhu3rukouhechukouyongtongyigejiegoubianlianglaichuandijicunqidezhi

  jiegoubianliangming.r_ax=yaofudezhi;

  ......

  intr(zhongduanhao,&jiegoubianliangming);

  moubianliang=jiegoubianliangming.r_ax;

  touwenjiandos.h

  itoa()bazhengxingshuzhuanhuanweizifuchuandehanshu

  yuanxingchar *itoa(int value,char *string,int radix)

  gongnengbavaluedezhizhuanhuanweiyiNULLjieshudezifuchuanbingbajieguocunzaistringzhongradixshizhuanhuandejishuzhizai2dao36zhijianfenpeigeistringdekongjianbixukerongnafanhuidesuoyouzijie(zuiduo17zijie)

  fanhuizhizhixiangstringdezhizhen

  touwenjianstdlib.h

  kbhit()jianchadangqiananxiadejiandehanshu

  yuanxingint kbhit(void)

  gongnengjianchaanxiadejianshifouyouxiaoruoyouxiaozekeyonggetch()huogetche()duqu

  fanhuizhijiaruanjianyouxiaofanhuiyifeilingzhifouzefanhui0

  touwenjianconio.h

  keep()zhuliubing退tuichuhanshu

  yuanxingvoid keep(unsigned char status,unsigned size)

  gongnengyongyuanzhuangyigeTSRchengxu(使shiyongDOSgongnengtiaoyong0x31)chukouzhuangtaishezhiweizaistatuszhongdezhichengxuzhanyongcunchukongjianweisize,bingshifangneicundeqiyubufen

  touwenjiandos.h

  log()

  yuanxingdouble log(double num)

  gongnengqiunumdeziranduishuzhi

  touwenjianmath.h

  log10()

  yuanxingdouble log10(double num)

  gongnengqiunumyi10weidideduishuzhi

  touwenjianmath.h

  _lrotl()jiangyigewufuhaochangzhengxingshuzuoxunhuanyiweidehanshu

  yuanxingunsigned long _lrotl(unsigned long value,int count)

  gongnengjiangvaluexiangzuoxunhuanyidongcountwei

  fanhuizhijiangvaluexiangzuoxunhuanyidongcountweihoudezhi

  touwenjianstdlib.h

  gengduoneirongqingkanC/C++jinjiejishuwendangzhuantihuo

  _lrotr()jiangyigewufuhaochangzhengxingshuyouxunhuanyiweidehanshu

  yuanxingunsigned long _lrotr(unsigned long value,int count)

  gongnengjiangvaluexiangyouxunhuanyidongcountwei

  fanhuizhijiangvaluexiangyouxunhuanyidongcountweihoudezhi

  touwenjianstdlib.h

  

  

  lseek()yidongwenjianzhizhenhanshu

  yuanxinglong lseek(int handle,long offset,int fromwhere)

  handle=open()hanshudefanhuizhi(wenjianjubing);

  fromwhere=wenjianweizhi

  (SEEK_SET(0)congwenjiantouweizhi;SEEK_CUR(1)congdangqianwenjianzhizhenweizhi;SEEK_END(2)congwenjianjieyiweizhi)

  gongnengbawenjianzhizhenyidongdaofromwheresuozhidedizhijiashangoffsetxinweizhidepianyishang

  touwenjianio.h

  fanhuizhizhizhenxinweizhidepianyiliang(xiangduiyuwenjiankaishichu),chucuoshifanhui-1L

  ltoa()bachangzhengxingshuzhuanhuanweizifuchuandehanshu

  yuanxingchar *ltoa(long value,char *string,int radix)

  gongnengbavaluedezhizhuanhuanweiyiNULLjieshudezifuchuanbingbajieguocunzaistringzhongradixshizhuanhuandejishuzhizai2dao36zhijianfenpeigeistringdekongjianbixukerongnafanhuidesuoyouzijie(zuiduo33zijie)

  fanhuizhizhixiangstringdezhizhen

  touwenjianstdlib.h

  malloc()fenpeineicunhanshu

  yuanxingvoid *malloc(size_t size)

  gongnengcongduizhongfenpeidaxiaoweisizezijiedekuaiwin32yeshiyong

  fanhuizhifanhuixinfenpeineicundedizhiruowuzugouneicunfanhuiNULL

  touwenjianalloc.hstdlib.h

  mkdir()chuangjianmuluhanshu

  yuanxingint mkdir(const char *path)

  gongnengangeidingdelujingjianliyigexindemulu

  touwenjiandir.h

  fanhuizhi0(chenggong);-1(shibai)

  mktemp()jianliyigeweiyidewenjianmingdehanshu

  yuanxingchar *mktemp(char *template)

  gongneng使shiyongyigeweiyidewenjianminglaitihuanzifuchuantemplate,bingfanhuitemplate

  touwenjiandir.h

  MK_FP()shezhiyigeyuanzhizhendehong

  yuanxingvoid far *MK_FP(unsigned seg,unsigned ofs)

  gongnengtongguoduanzhi(seg)hepianyiliang(ofs)jianliyigeyuanzhizhen

  fanhuizhiyuanzhizhen

  touwenjiandos.h

  movedata()kaobeishujuhanshu

  yuanxingvoid movedata(unsigned srcseg,unsigned srcoff,unsigned dstseg,unsigned dstoff,size_t n)

  gongnengcongyuandizhi(srcseg:srcoff)kaobeingezijiedeshujudaomubiaodizhi(dstseg:dstoff)

  touwenjianmem.hstring.h

  _open()dakaiyigewenjianjinxingduxiedehanshu

  yuanxingint _open(path,oflags)

  char *path;//yijianliwenjiandelujingming

  int oflags;//fangshi

  gongnengdakaiyoupathzhidingdewenjianfanhuiwenjiandejubing

  fanhuizhi0(zhengchangjieshu);-1(cuowu)

  touwenjianfcntl.hio.h

  open()dakaiwenjianjinxingduxiedehanshu

  yuanxingint open(const char *path,int Access[,unsigned mode])

  使shiyongfangfawenjianjubing=open("wenjianming",dakaimoshidakaimoshi);

  gongnengdakaipathzhidingdewenjiangenjuaccesszhidingdemoshizhiduxie

  accessmoshi

  O_RDONLYyizhidufangshidakai

  O_WRONLYyizhixiefangshidakai

  O_RDOWR yiduxiefangshidakai

  yishangbiaozhizhineng使shiyongyigeyixiakeyiyongzuhe使shiyong

  O_NDELAY

  O_APPENDruozhiweimeicixiecaozuoqiandou使shiwenjianzhizhenzhidaowenjianmoyi

  O_CREAT ruowenjianbucunzaizechuangjian

  O_TRUNC ruowenjianyicunzaizejiangwenjianchangdujiewei0

  O_EXCLzhiheO_CREATyiqi使shiyongruowenjianyijingcunzaifanhuicuowudaima

  O_BINARYyierjinzhifangshidakai

  O_TEXTyiwenbenfangshidakai

  jiaru使shiyongleO_CREATfangshizexuyaotigongshenshumode

  (S_IWRITEkexie;S_IREADkedu;S_IREADS_IWRITEkeduxie)

  fanhuizhiwenjianjubing(chenggongshi);-1(shibaishi)

  chenggongshiwenjianzhizhenzhixiangwenjiantou

  touwenjianfcntl.hio.h

  gengduoneirongqingkanC/C++jinjiejishuwendangzhuantihuo

  

   outport()shuchuyigezidaoduankouzhongdehanshu

  yuanxingvoid outport(int portid,int value)

  tiaoyongfangshioutport(0xduankouhao,yaoshuchudezi);

  gongnengwangzhidingduankoudizhishuchuyigezi

  touwenjiandos.h

  

  

  outportb()shuchuyigezijiedaoduankouzhongdehanshu

  yuanxingvoid outportb(int portid,unsigned char value)

  tiaoyongfangshioutportb(0xduankouhao,yaoshuchudezijie);

  gongnengwangzhidingduankoudizhishuchuyigezijie

  fuPC I/Odizhifenpei

  PCzhiyongle10weidizhi线xian(A0-A9)jinxingyimaqixunzhidefanweiwei0H-3FFHgongyou1024geI/Odizhizhe1024gedizhizhongqianbanduan(A9=0fanweiwei0H-1FFH)shishuyuzhujibanI/Oyimahoubanduan(A9=1fanweiwei200H-3FFH)zeshiyonglaikuozhanchacaoshangdeI/Oyimayong

  I/Oduankougongnengbiao

  

  I/Odizhigongnengyongtu

  

  0DMAtongdao0neicundizhijicunqi(DMAkongzhiqi1(8237))

  1DMAtongdao0, chuanshujishujicunqi

  2DMAtongdao1neicundizhijicunqi

  3DMAtongdao1, chuanshujishujicunqi

  4DMAtongdao2neicundizhijicunqi

  5DMAtongdao2, chuanshujishujicunqi

  6DMAtongdao3neicundizhijicunqi

  7DMAtongdao3, chuanshujishujicunqi

  8DMAtongdao0-3dezhuangtaijicunqi

  AH DMAtongdao0-3depingbijicunqi

  BH DMAtongdao0-3defangshijicunqi

  CH DMAqingchuzijiezhizhen

  DH DMAzhuqingchuzijie

  EH DMAtongdao0-3deqingpingbijicunqi

  FH DMAtongdao0-3dexiepingbijicunqi

  19HDMAqishijicunqi

  20H-3FHkebianchengzhongduankongzhiqi1(8259)使shiyong

  40Hkebianchengzhongduanjishiqi(8253)使shiyongdu/xiejishuqi0

  41Hkebianchengzhongduanjishiqijicunqi

  42Hkebianchengzhongduanjishiqiduoxiangjicunqi

  43Hkebianchengzhongduanjishiqi,kongzhizijicunqi

  44Hkebianchengzhongduanjishiqi,duoxiangjicunqi(AT)

  47Hkebianchengzhongduanjishiqi,jishuqi0dekongzhizijicunqi

  48H-5FHkebianchengzhongduanjishiqi使shiyong

  60H-61Hjianpanshurushujuhuanchongqu

  61HAT:8042jianpankongzhijicunqi/XT:8255shuchujicunqi

  62H8255shurujicunqi

  63H8255minglingfangshijicunqi

  64H8042jianpanshuruhuanchongqu/8042zhuangtai

  65H-6FH8255/8042zhuanyong

  70HCMOS RAMdizhijicunqi

  71HCMOS RAMshujujicunqi

  80Hshengchanceshiduankou

  81HDMAtongdao2,yebiaodizhijicunqi

  82HDMAtongdao3,yebiaodizhijicunqi

  83HDMAtongdao1,yebiaodizhijicunqi

  87HDMAtongdao0,yebiaodizhijicunqi

  89HDMAtongdao6,yebiaodizhijicunqi

  8AHDMAtongdao7,yebiaodizhijicunqi

  8BHDMAtongdao5,yebiaodizhijicunqi

  8FHDMAtongdao4,yebiaodizhijicunqi

  93H-9FHDMAkongzhiqizhuanyong

  A0HNM1pingbijicunqi/kebianchengzhongduankongzhiqi2

  A1Hkebianchengzhongduankongzhiqi2pingbi

  C0HDMAtongdao0neicundizhijicunqi(DMAkongzhiqi2(8237))

  C2HDMAtongdao0, chuanshujishujicunqi

  C4HDMAtongdao1neicundizhijicunqi

  C6HDMAtongdao1, chuanshujishujicunqi

  C8HDMAtongdao2neicundizhijicunqi

  CAHDMAtongdao2, chuanshujishujicunqi

  CCHDMAtongdao3neicundizhijicunqi

  CEHDMAtongdao3, chuanshujishujicunqi

  D0HDMAzhuangtaijicunqi

  D2HDMAxieqingqiujicunqi

  D4HDMApingbijicunqi

  D6HDMAfangshijicunqi

  D8HDMAqingchuzijiezhizhen

  DAHDMAzhuqing

  DCHDMAqingpingbijicunqi

  DEHDMAxiepingbijicunqi

  DFH-EFHbaoliu

  F0H-FFHxiechuliqi使shiyong

  100H-16FHbaoliu

  170H 1haoyingpanshujujicunqi

  171H 1haoyingpancuowujicunqi

  172H 1haoyingpanshujushanqujishu

  173H 1haoyingpanshanqushu

  174H 1haoyingpanzhumian(dizijie)

  175H 1haoyingpanzhumian(gaozijie)

  176H 1haoyingpanqudongqi/citoujicunqi

  177H 1haoyingpanzhuangtaijicunqi

  1F0H 0haoyingpanshujujicunqi

  1F1H 0haoyingpancuowujicunqi

  1F2H 0haoyingpanshujushanqujishu

  1F3H 0haoyingpanshanqushu

  1F4H 0haoyingpanzhumian(dizijie)

  1F5H 0haoyingpanzhumian(gaozijie)

  1F6H 0haoyingpanqudongqi/citoujicunqi

  1F7H 0haoyingpanzhuangtaijicunqi

  1F9H-1FFHbaoliu

  200H-20FHyouxikongzhiduankou

  210H-21FHkuozhandanyuan

  278H 3haobingxingkoushujuduankou

  279H 3haobingxingkouzhuangtaiduankou

  27AH 3haobingxingkoukongzhiduankou

  2B0H-2DFHbaoliu

  2E0H EGA/VGA使shiyong

  2E1H GPIP(0haoshipeiqi)

  2E2H shujuhuoqu(0haoshipeiqi)

  2E3H shujuhuoqu(1haoshipeiqi)

  2E4H-2F7Hbaoliu

  2F8H 2haochuanxingkoufasong/baochijicunqi(RS232jiekouka2)

  2F9H 2haochuanxingkouzhongduanyouxiaojicunqi

  2FAH 2haochuanxingkouzhongduanIDjicunqi

  2FBH 2haochuanxingkou线xiankongzhijicunqi

  2FCH 2haochuanxingkoutiaozhijietiaokongzhijicunqi

  2FDH 2haochuanxingkou线xianzhuangtaijicunqi

  2FEH 2haochuanxingkoutiaozhijietiaozhuangtaijicunqi

  2FFH baoliu

  300H-31FHyuanxingka

  320H yingpanshipeiqijicunqi

  322H yingpanshipeiqikongzhi/zhuangtaijicunqi

  324H yingpanshipeiqitishi/zhongduanzhuangtaijicunqi

  325H-347Hbaoliu

  348H-357HDCA3278

  366H-36FHPCwangluo

  372H ruanpanshipeiqishujushuchu/zhuangtaijicunqi

  375H-376Hruanpanshipeiqishujujicunqi

  377H ruanpanshipeiqishujushurujicunqi

  378H 2haobingxingkoushujuduankou

  379H 2haobingxingkouzhuangtaiduankou

  37AH 2haobingxingkoukongzhiduankou

  380H-38FHSDLCjiBSCtongxun

  390H-393HClustershipeiqi0

  3A0H-3AFHBSCtongxun

  3B0H-3B HMDAshipinjicunqi

  3BCH 1haobingxingkoushujuduankou

  3BDH 1haobingxingkouzhuangtaiduankou

  3BEH 1haobingxingkoukongzhiduankou

  3C0H-3CFHEGA/VGAshipinjicunqi

  3D0H-3D7HCGAshipinjicunqi

  3F0H-3F7Hruanpankongzhiqijicunqi

  3F8H 1haochuanxingkoufasong/baochijicunqi(RS232jiekouka1)

  3F9H 1haochuanxingkouzhongduanyouxiaojicunqi

  3FAH 1haochuanxingkouzhongduanIDjicunqi

  3FBH 1haochuanxingkou线xiankongzhijicunqi

  3FCH 1haochuanxingkoutiaozhijietiaokongzhijicunqi

  3FDH 1haochuanxingkou线xianzhuangtaijicunqi

  3FEH 1haochuanxingkoutiaozhijietiaozhuangtaijicunqi

  3FFH baoliu

  -

  gengduoneirongqingkanC/C++jinjiejishuwendangzhuantihuo

  

   outtextxy()zaizhidingweizhixianshiyizifuchuandehanshu

  yuanxingvoid far outtextxy(int x,int y,char far *textstring)

  gongnenganzhaodangqianduiqifangshihedangqianzitifangxiangdaxiaozaishiquzhonggeidingweizhixianshiyiwenbenzifuchuan

  

  

  zhuchongyongtextwidthhetextheighthanshujuedingzifuchuandechicundaxiao

  touwenjiangraphics.h

  peek()fanhuizhidingneicunzhongzidehanshu

  yuanxingint peek(int seg,unsigned offset)

  gongnengfanhuidizhiweiseg:offsetdezidanyuandezhi

  touwenjiandos.h

  peekb()fanhuizhidingneicunzhongzijiedehanshu

  yuanxingchar peekb(int seg,unsigned offset)

  gongnengfanhuidizhiweiseg:offsetdezijiedanyuandezhi

  poke()zaizhidingdeneicunzhongcunchuyigezidehanshu

  yuanxingvoid poke(int seg,unsigned offset,int word)

  gongnengbawordde16weizhifangdaodizhiweiseg:offsetdezidanyuanzhong

  pokeb()zaizhidingdeneicunzhongcunchuyigezijiedehanshu

  yuanxingvoid pokeb(int seg,unsigned offset,int byte)

  gongnengbabytede8weizhifangdaodizhiweiseg:offsetdezijiedanyuanzhong

  pow()

  yuanxingdouble pow(double b,double eXP)

  gongnengqiuyibweidideexpcimidezhi

  touwenjianmath.h

  printf()xiegeshihuashuchu