随笔分类 -  Operating System

DIY OS.
摘要:前段时间一直忙于其他事情,Orange'S的学习暂时搁浅了。现在可以更多时间学习编写操作系统了,把之前学过的重新温习一下。学习环境 Ubuntu 11.04 + Bochs 2.4.6 + NASM主要工作1. 第一章 马上动手写一个最小的“操作系统”代码如下: 1 org 07c00h ; tell the compiler that the program is loaded at 7c00 2 mov ax, cs 3 mov ds, ax 4 mov es, ax 5 call DispStr ; call the example about string d... 阅读全文
posted @ 2011-10-23 00:45 大有|元亨 阅读(9090) 评论(3) 推荐(1)
摘要:TrimSlice Pro was delivered finally, it is preinstalled ubuntu 11.04. I hurried to get the Kinect working on the Arm Linux this weekend. I installed the official drivers, although it is regretful that NITE cannot be run without SSE support.(1) mkdir ~/kinect, download the latest OpenNI (Version 1.3. 阅读全文
posted @ 2011-10-11 05:20 大有|元亨 阅读(2421) 评论(0) 推荐(2)
摘要:Short ContentsIntroduction1 Programming Languages Supported by GCC2 Language Standards Supported by GCC3 GCC Command Options4 C Implementation-defined behavior5 Extensions to the C Language Family6 Extensions to the C++ Language7 GNU Objective-C runtime features8 Binary Compatibility9gcov—a Test Cov 阅读全文
posted @ 2011-10-10 21:06 大有|元亨 阅读(376) 评论(0) 推荐(0)
摘要:These options control various sorts of optimizations.Without any optimization option, the compiler's goal is to reduce the cost of compilation and to make debugging produce the expected results. Statements are independent: if you stop the program with a breakpoint between statements, you can the 阅读全文
posted @ 2011-10-10 21:03 大有|元亨 阅读(840) 评论(0) 推荐(0)
摘要:These `-m' options are defined for Advanced RISC Machines (ARM) architectures:-mabi=nameGenerate code for the specified ABI. Permissible values are: `apcs-gnu', `atpcs', `aapcs', `aapcs-linux' and `iwmmxt'. -mapcs-frameGenerate a stack frame that is compliant with the ARM Pro 阅读全文
posted @ 2011-10-10 20:53 大有|元亨 阅读(565) 评论(0) 推荐(0)
摘要:i686的解释:i代表intel系列的cpu 。 386 几乎适用于所有的 x86 平台,不论是旧的 pentum 或者是新的 pentum-IV 与 K7 系列的 CPU等等,都可以正常的工作!那个 i 指的是 Intel 兼容的 CPU 的意思,至于 386 不用说,就是 CPU 的等级啦! i586 就是 586 等级的计算机,那是哪些呢?包括 pentum 第一代 MMX CPU, AMD 的 K5, K6 系列 CPU ( socket 7 插脚 ) 等等的 CPU 都算是这个等级; i686 在 pentun II 以后的 Intel 系列 CPU ,及 K7 以后等级的... 阅读全文
posted @ 2011-10-09 10:23 大有|元亨 阅读(4890) 评论(0) 推荐(0)
摘要:原始教學文章:How to Test Drive Google Android on Your PC Without Buying a PhoneHow To Enable the Android Market in the Google Android Emulator廢話不多說,因為整個安裝、啟動、測試流程還滿多步驟的,所以就讓我們直接開始進行操作教學吧!下載Android系統組件:步驟1.這個方法理論上適用於Windows、Mac OS X、Linux系統,不過本文操作則以「Windows XP」為例。來到「Android SDK」下載網頁,,下載windows版本的壓縮檔案。步驟2.因 阅读全文
posted @ 2011-08-28 01:08 大有|元亨 阅读(2943) 评论(0) 推荐(0)
摘要:汇编中的10H中断是由BIOS对显示器和屏幕所提供的服务程序。使用int 10h服务程序时,必须先指定ah寄存器为以下显示服务编号之一,以指定需要调用的功用。显示服务 (Video Service:int 10h)00H:设置显示器模式01H:设置光标形状02H:设置光标位置03H:读取光标信息04H:读取光笔位置05H:设置显示页06H、07H:初始化或滚屏08H:读光标处的字符及其 属性09H:在光标处按指定属性显示字符0AH:在当前光标处显示字符0BH:设置调色板、背景色或边框0CH: 写图形象素0DH:读图形象素0EH:在Teletype模式下显示字符0FH:读取显示器模式10H:颜色 阅读全文
posted @ 2011-06-13 13:29 大有|元亨 阅读(3870) 评论(0) 推荐(0)
摘要:1 org 07c00h 2 mov ax, cs 3 mov ds, ax 4 mov es, ax 5 call DispStr 6 jmp $ 7 DispStr: 8 mov ax, BootMessage 9 mov bp, ax10 mov cx, 1611 mov ax, 01301h12 mov bx, 000ch13 mov dl, 014 int 10h15 ret16 BootMessage: db “Hello, OS world!”17 times 510-($-$$) db 018 dw 0xaa55这个代码段是存于磁盘引导扇区的系统引导(自举)程序。若存于硬盘第. 阅读全文
posted @ 2011-06-13 11:45 大有|元亨 阅读(1053) 评论(0) 推荐(1)
摘要:学习环境 Ubuntu 11.04 + Bochs 2.4.6 + NASM主要工作1. 第一章 马上动手写一个最小的“操作系统”代码如下: 1 org 07c00h ; tell the compiler that the program is loaded at 7c00 2 mov ax, cs 3 mov ds, ax 4 mov es, ax 5 call DispStr ; call the example about string display 6 jmp $ ; unlimited loop 7 DispStr: 8 mov ax, BootMessage 9 mov bp, 阅读全文
posted @ 2011-06-11 15:29 大有|元亨 阅读(6185) 评论(6) 推荐(0)
摘要:trackback:http://osfromscratch.org/作为《自己动手写操作系统》(以下简称《自》)的第二版,《Orange'S:一个操作系统的实现》(以下简称“新版”)主要有以下变化:书中示例操作系统的名字改为 Orange'S书名改为《Orange'S:一个操作系统的实现》增加了有关 IPC、FS、MM 等内容将默认开发平台改为 GNU/Linux,同时兼顾 Windows更改了排版工具,并使用技术手段增加书的可读性,比如代码行号的运用建立专门网站以服务读者建立专门讨论区供读者交流读过《自》的读者一定知道,其中默认使用 Windows 作为开发平台,同 阅读全文
posted @ 2011-06-10 04:25 大有|元亨 阅读(1165) 评论(0) 推荐(0)