當柳上原的風吹向天際的時候...

          真正的快樂來源于創造

            BlogJava :: 首頁 :: 聯系 :: 聚合  :: 管理
            368 Posts :: 1 Stories :: 201 Comments :: 0 Trackbacks

          公告


          常用鏈接

          留言簿(3)

          最新隨筆

          積分與排名

          • 積分 - 394649
          • 排名 - 145

          最新評論

          閱讀排行榜

          工具:
          這個工具用于將ASM文件編譯.
          http://www.aygfsteel.com/Files/heyang/nasm-2.07-installer.rar

          建議使用Notepad++書寫asm,然后用命令行編譯:
          >nasm a.asm -o a.com

          這個工具能將BIN寫入軟盤扇區:
          http://www.aygfsteel.com/Files/heyang/FloppyWriter.zip

          以下是一個例程:
          %define _BOOT_DEBUG_
          %ifdef _BOOT_DEBUG_
              org 0100h
          %else
              org 07c00h
          %endif
              mov ax,cs
              mov ds,ax
              mov es,ax
              call DispStr;
              jmp $;
          DispStr:
              mov ax,BootMessage
              mov bp,ax
              mov cx,
          32
              mov ax,01301h
              mov bx,000ch
              mov dl,
          0
              
          int 10h
              ret
          BootMessage:    db 
          "Hello,OS world!XXXXXX is here."
          times 
          510-($-$$) db 0;
          dw 
          0xaa55;
          posted on 2013-05-30 20:40 何楊 閱讀(187) 評論(0)  編輯  收藏

          只有注冊用戶登錄后才能發表評論。


          網站導航:
           
          主站蜘蛛池模板: 胶南市| 武威市| 永登县| 泰顺县| 天镇县| 西畴县| 黄山市| 故城县| 鞍山市| 新和县| 彰化市| 房山区| 北安市| 勃利县| 建阳市| 旌德县| 浮山县| 义乌市| 武邑县| 西和县| 延川县| 中方县| 肇州县| 车致| 旬邑县| 宁明县| 高邑县| 梅州市| 星座| 海安县| 名山县| 五寨县| 临湘市| 咸阳市| 前郭尔| 巨鹿县| 高淳县| 兴化市| 扬州市| 友谊县| 双鸭山市|