随笔分类 - 一个操作系统的实现
摘要:64位的Ubuntu系统上使用汇编nasm和C语言$ nasm -f elf foo.asm -o foo.o$ gcc -c bar.c -o bar.o$ ld -s foo.o bar.o -o foobar ld: i386 architecture of input file `foo....
阅读全文
摘要:出现问题:$nasm -f elf hello.asm -o hello.o$ld -s hello.o -o hello ld: i386 architecture of input file `hello.o' is incompatible with i386:x86-64 output--...
阅读全文
摘要:引导程序1.2.1 Com 文件Com 文件是纯二进制的文件,也是直接与 Cpu 交换的顺序指令文件。Com 文件的大小是有限制的,不能超过 64KB.因为 8086 时代的 CPU 地址线是 20 位的,20 位能表达的数值也就是 fffffh(1MB )。而寄存器最高也只是 16 位,无法用 5...
阅读全文
摘要:《一个操作系统的实现》 ubuntu系统环境配置电脑之前已经安装了gcc.一.nasm安装:sudo apt-get install nasm或官网下载http://sourceforge.net/projects/nasm我下载到的是nasm-2.11.08-1.src.rpm(里面有nasm-2...
阅读全文

浙公网安备 33010602011771号