-
自己寫第一個作業系統
利用 virtual box 建立一個虛擬機器,類型選Other,版本為DOS,記憶體大小為32MB,硬碟選VDI,500MB,即初始化完成。按開機會顯示 FATAL: No bootable medium found! System halted. 因為沒有OS! 先建立一個HelloWorld.asm的檔案。 [BITS 16] ; We will start with 16 bits bootable program (一開始無法直接跑64bit的程式) [ORG 0x7C00] ; The program starts at 0x7c00 (X86 processor已定義好從0x7C00開始拿程式來跑) main: mov si, msg ; move the message to be printed to SI register jmp...