您现在的位置是:首页
>
赵昭仪个人资料 MK_FP详细资料大全
MK_FP详细资料大全 MK_FP是一个宏。功能是做段基址加上偏移地址的运算,也就是取实际地址。基本介绍外文名:MK_FP类型:宏功能:段基址加上偏移地址的运算解释:取实际地址。 简介,程式例, 简介
MK_FP详细资料大全
MK_FP是一个宏。功能是做段基址加上偏移地址的运算,也就是取实际地址。

基本介绍
外文名:MK_FP类型:宏功能:段基址加上偏移地址的运算解释:取实际地址。 简介,程式例,简介
函式名:MK_FP函式原型: #define MK_FP( seg,ofs )( (void _seg * )( seg ) +( void near * )( ofs )) 函式位置: dos.h 函式说明:功 能: 设定一个远指针 用 法: void far *MK_FP(unsigned seg, unsigned off);程式例
#include <dos.h> #include <graphics.h> int main(void) { int gd, gm, i; unsigned int far *screen; detectgraph(&gd, &gm); if (gd == HERCMONO) screen = MK_FP(0xB000, 0); else screen = MK_FP(0xB800, 0); for (i=0; i<26; i++) *screen++ = 0x0700 + ('a' + i); return 0; } 很赞哦! (1046)