01 2011 档案

摘要:head.s 通过编译链接的处理,同时被 boot.s 加载到保护模式零地址开始运行,在最后会调用 main 函数。 代码: /* * head.s contains the 32-bit startup code. * * NOTE!!! Startup happens at absolute ... 阅读全文
posted @ 2011-01-10 23:18 Proteas 阅读(1097) 评论(0) 推荐(0)
摘要:汇编实现(AT&T语法): .section .datavalues: .int 33, 25, 67, 10, 1.section .text.global _start_start: nop movl $values, %esi movl $4, %ecx movl $4, %ebxloop: ... 阅读全文
posted @ 2011-01-09 14:08 Proteas 阅读(485) 评论(0) 推荐(0)