摘要: // 本文来自http://www.cnblogs.com/king-77024128/articles/2203207.htmlSPI(Serial Peripheral Interface,串行外设接口)是Motorola公司提出的一种同步串行数据传输标准,在很多器件中被广泛应用。1. 接口SP... 阅读全文
posted @ 2015-07-13 19:31 Auris 阅读(166) 评论(0) 推荐(0) 编辑
摘要: 基于MFC建立动态链接库工程 [SkinDll]【Step1 资源导入】导入已经编辑好的位图资源,定义好标识符,设置工程为MFC静态库编译方式#define IDB_LEFTTITLE 1000#define IDB_MIDTITLE 1001#define IDB_RIGHT... 阅读全文
posted @ 2015-06-27 23:10 Auris 阅读(846) 评论(0) 推荐(0) 编辑
摘要: MFC动态链接库的创建与访问【创建】新建工程MFC AppWizard(dll) 注意FileView视图中的[dll.cpp]和[dll.def]文件 【dll.cpp】 用于实现大部分的功能的文件 【dll.def】 --------------------------------... 阅读全文
posted @ 2015-06-27 22:45 Auris 阅读(144) 评论(0) 推荐(0) 编辑
摘要: C++语言的多态性 与 C++类的虚函数有关引入一个问题:定义一个基类指针,指向派生类对象,然后根据指针调用相应的方法,会有什么效果?class CBase{public: virtual void vfun() { coutvfun(); pBase->fun(); // 输出... 阅读全文
posted @ 2015-06-27 22:44 Auris 阅读(157) 评论(0) 推荐(0) 编辑
摘要: [section .gdt] ---> we should give such these definations for the Descriptors in that section LABEL_GDT --> empty Descriptor; LABEL_DESC_CODE32 --> turn help to [section .s32] LABEL_DESC_CODE16 -->turn help to [section .s16Code] LABEL_DESC_... 阅读全文
posted @ 2013-07-06 23:51 Auris 阅读(326) 评论(0) 推荐(0) 编辑
摘要: [section .gdt] ----> it is used for define the globla descriptors in the specfic table, in the system, there is only one gdt; note that!!! do that format the function is for view the code easily;[section .s16] ----> as the program begin to run in the real mode, this section wil... 阅读全文
posted @ 2013-07-06 22:59 Auris 阅读(269) 评论(0) 推荐(0) 编辑
摘要: // 本程序摘抄自《自己动手写操作系统》一书中的boot.asm// 以后会仿照此程序继续改写;拓展; org 07c00h mov ax, cs mov ds, ax mov es, ax call Disp_Str Disp_Str: mov ax, BootMessage mov bp, ax mov cx, 16 mov ax, 01301h mov bx, 000ch mov dl, 0 int 10h ret BootMessage:db "Hello, OS World!" ti... 阅读全文
posted @ 2013-07-05 20:52 Auris 阅读(287) 评论(0) 推荐(0) 编辑
摘要: Linux 版本:#include #include #include int main(int argc, char *argv[]){ char boot_buf[512]; int fd_floppy, fd_src, result_write; if(argc != 3) { printf("error: parameters error !\n"); return -1; } if((fd_src = open(argv[1], O_RDONLY)) == -1) { printf("error: open %s failed !\n", ar 阅读全文
posted @ 2013-07-05 20:46 Auris 阅读(296) 评论(0) 推荐(0) 编辑
摘要: 2013-7-5今天开发进度: 一. 配置环境: 由于操作系统的制作, 即内核的制作,与一般应用程序制作既有相似之处---你得写代码,而且这些代码比较晦涩,甚至变态,作为单独的开发者,你既是整个所谓的“项目”的管理者,你得注意整个项目的方方面面,同时你又是苦逼的程序员,每天拼命的敲代码,解决各种苦逼的bug和问题;当然内核制作也有与一般应用程序不同的地方,开发的时间比较长,复杂,艰巨(苦逼);开发环境的配置比较复杂,没有现成的IDE和环境,你得自己去配置,自己去配置,自己去配置。 环境: 1. 虚拟机 ----> you can choose VPC or WmWare Station. 阅读全文
posted @ 2013-07-05 20:37 Auris 阅读(412) 评论(0) 推荐(0) 编辑
摘要: /*this is version_2*/#include <stdio.h>#define PAGELEN 24#define LINELEN 80void do_more(FILE *);int see_more(FILE *);int main(int argc, char *argv[]){ FILE *fp; if(argc == 1) do_more(stdin); else while( --argc ) { if((fp = fopen(*++argv, "r")) != NULL) { do_more(fp); fclose(fp); } e. 阅读全文
posted @ 2013-03-17 23:09 Auris 阅读(280) 评论(0) 推荐(0) 编辑