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

          真正的快樂來源于創造

            BlogJava :: 首頁 :: 聯系 :: 聚合  :: 管理
            368 Posts :: 1 Stories :: 201 Comments :: 0 Trackbacks
          工具:
          這個工具用于將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 何楊 閱讀(186) 評論(0)  編輯  收藏

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


          網站導航:
           
          主站蜘蛛池模板: 肇源县| 龙州县| 明水县| 礼泉县| 新津县| 林西县| 开封县| 新竹市| 雅安市| 礼泉县| 南和县| 苏尼特右旗| 本溪| 闻喜县| 鸡西市| 望都县| 天祝| 屏东市| 大城县| 北川| 泸西县| 高要市| 鹤山市| 富锦市| 湘西| 来凤县| 多伦县| 罗平县| 伊金霍洛旗| 北京市| 珠海市| 宁夏| 顺平县| 仁化县| 和硕县| 高阳县| 东平县| 永城市| 丹巴县| 伊宁县| 喀什市|