Boot 的编写

// 本程序摘抄自《自己动手写操作系统》一书中的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!"

  times 510 - ($ - $$) db 0

  dw 0xAA55

posted @ 2013-07-05 20:52  Auris  阅读(287)  评论(0编辑  收藏  举报