![](https://img-blog.csdnimg.cn/20201014180756928.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
汇编
文章平均质量分 78
轩动day
intel_do_flush_locked failed: Invalid argument
展开
-
VS编译汇编语言
第一种方式肯定是嵌入汇编了,利用VS内置的__asm关键字原创 2014-05-25 18:40:18 · 9724 阅读 · 0 评论 -
Windows中断处理
在现代操作系统当中,驱动并不是固定与中断相对应的,而是作为一种资源由程序员自己在驱动当中申请,这样在驱动加载之后,如果有中断产生的时候,就会调用在与中断相关的函数。原创 2014-08-01 16:49:50 · 3133 阅读 · 1 评论 -
Linux0.11内核源代码(1)
SYSSIZE = 0x3000SETUPLEN = 4 ! nr of setup-sectorsBOOTSEG = 0x07c0 ! original address of boot-sectorINITSEG = 0x9000 ! we move boot here - out of the waySETUPSEG = 0x9020 ! setup starts原创 2015-02-04 17:29:02 · 1151 阅读 · 0 评论 -
Linux0.11内核源代码(3)
movl $0x10,%eax/*设置数据寄存器,注意CS段寄存器设置为8,而数据寄存器设置为16.仅一位有差距*/ mov %ax,%ds mov %ax,%es mov %ax,%fs mov %ax,%gs lss _stack_start,%esp call setup_idt call setup_gdt movl $0x10,%eax # reload all the原创 2015-03-08 21:18:59 · 979 阅读 · 0 评论 -
Linux0.11内核源代码(2)
INITSEG = 0x9000 ! we move boot here - out of the waySYSSEG = 0x1000 ! system loaded at 0x10000 (65536).SETUPSEG = 0x9020 ! this is the current segmentstart: mov ax,#INITSEG mov ds,ax mov ah原创 2015-03-08 21:19:37 · 485 阅读 · 0 评论