汇编网首页登录博客注册
acool的学习博客
博客首页博客互动【做检测题】论坛求助

我的博客

个人首页 |  我的文章 |  我的相册 |  我的好友 |  最新访客 |  文章收藏 |  论坛提问 |  友情链接 |  给我留言  
图片载入中
  •  --
  • 『姓名』:来,留,去
  • 『性别』:男『发送消息
  • 个人说明:.
    .  
      世间是一个大苦海。 
      人在海中。 
      肉身是船。 
      魂儿是船里的人。 
      船载着人,一直向彼岸行驶。
      ...
    .
  • 详细信息『加为好友』
学习动态
最新留言
友情链接

[2008-11-25 17:10] 看看c语言中是怎么访问寄存器地

/*
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;        
};
*/

#include "dos.h"
main()
{
        union REGS inregs,outregs;
    
        inregs.h.ah = 0x2a;        
        
        intdos(&inregs,&outregs);        
          
          
    printf("%02d / %02d / %2d\n",outregs.h.dl,outregs.h.dl,outregs.x.cx);
}
评论次数(1)  |  浏览次数(491)  |  类型(汇编作业) |  收藏此文  | 

[  crazyman   发表于  2008-12-08 16:04  ]

??
博主能不能给说道说道啊?

 
 请输入验证码  (提示:点击验证码输入框,以获取验证码