20 statement you can write an operating system
20 second statement will be able to write an operating system
operating system gives the impression that complex, large, can not use common wisdom perception of things, is it true? I'd have Of course, I say there is another half of the meaning, I do not want to scare you, just want to be able to experience with a sense of accomplishment, take you into the door of the operating system.
Now, I put the 20 operating system source code to write, who are interested to find a bare metal (not equipped with any system of the computer) experiments now, when you surprised by the red world!
Chinese
show courage, to the motherland tomorrow is not the use of foreign computer,
chi hair styling products Japan and the U.S. sign aviation liberalization agreem, come with me,
christian louboutin stockists london!
-----------------------------------
; org 07c00h; tell the compiler is loaded into 7c00 Department
; mov ax, cs
; mov ds, ax
mov es, ax
call diaspstr ;; calling the display routine
jmp $ string ;; infinite loop
Dispstr:
mov ax, BootMessage
mov bp, ax ; es: bp = string address
mov cx, 16 ;; cx = string length
mov ax, 01301h ; ah = 13,
mbt black, al = 01h
mov bx, 000ch ; page number is 0 (bh = 0) black red (bl = 0ch), highlight)
mov dl, 0
int 10h; 10h interrupt
No. ; ret
BootMessage: db 510 -($-$$) db 0; fill the remaining space, so that the binary code generated is just equal to 512 bytes
dw 0xaa55; end marker
---------------- ------------------
then,
sale ghd straighteners, to find a compiler to compile about
:
nasm boot.asm-o boot.bin
we get a 512-byte boot.bin, use the floppy disk sector read-write tool will definitely write a blank disk in this file the first sector. Now, your first This is a real floppy boot disk has.
time has come to experience a sense of accomplishment:
put her bare floppy, restart the ma
chine, under the guidance of the floppy disk,
ghd mk4 styler CWOW3.13射击完善抽筋宏经由测试, you see?
ah! The red
Now,
神的处方,
jordan retros, you tell me, tell the world,
kids timberland shoes, Bill Gates has a mysterious do? Windows still mysterious it?