亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频

? 歡迎來到蟲蟲下載站! | ?? 資源下載 ?? 資源專輯 ?? 關于我們
? 蟲蟲下載站

?? boot.asm

?? FritzOS - 簡單的C++開發OS的實例// 英文
?? ASM
字號:
;************************************************************************************************************;;	FritzOS Prekernel 0.7.1, Copyright (C) 2002 Tom Fritz;;	Made to be compiled on a Linux system with GCC, LD & nasm. Also can be compiled on Win32 with;		DGJPP and NASM. For more information on compiling and installing, look at the INSTALLING;		file. It should be in the "info" directory.;	;	boot.asm: FritzOS Prekernel 0.7 bootloader: Start FritzOS->Load GDTR->Set Protected Mode->Load Second;	Stage Loader->Load The FritzOS C++ Kernel.;;	Not much kernels are commented very well, so I'll comment this one well.;;************************************************************************************************************;; * This program is a part of the FritzOS kernel, and may be freely; * copied under the terms of the GNU General Public License (GPL),; * version 2, or at your option any later version.; Start Of Assembly Code:; The BIOS loads this at 7C00h, so tell the assembler ( NASM ) that that's where it's loaded.	ORG 7c00h; Now that NASM knows where this is loaded, we jump to the main bootsector code:	jmp Start      ; Goto Start; StartStart:	mov [ drive ],		dl        ; Get the floppy FritzOS booted from	; Update the segment registers	xor ax,		ax		; XOR ax	mov ds,		ax		; Mov AX into DS	jmp Running      ; Go to the running part of the bootsector; This is where the boot program runs.Running:; Clear text mode screen	mov ax,		3		; Set text-mode 3.	int 10h				; Text-mode 3 set. The screen is cleared.; Load the FritzOS C++ Kernel.; Reset the floppy drive. Need to do this to read the C++ kernel.ResetFloppy:	mov ax,		0x00		; Select Floppy Reset BIOS Function        mov dl,		[ drive ]	; Select the floppy FritzOS booted from        int 13h				; Reset the floppy drive        jc ResetFloppy		; If there was a error, try again.; Read the floppy drive for loading the FritzOS C+ KernelReadFloppy:         mov bx,	9000h		; Load FritzOS at 9000h.         mov ah,	0x02		; Load disk data to ES:BX         mov al,	17		; Load two floppy head full's worth of data.         mov ch,	0		; First Cylinder         mov cl,	2		; Start at the 2nd Sector, so you don't load the bootsector, you load					;  the C++ Kernel/Second Stage Loader ( they are linked together ).         mov dh,	0		; Use first floppy head         mov dl,	[ drive ]	; Load from the drive FritzOS booted from.         int 13h			; Read the floppy disk.	 jc ReadFloppy			; Error, try again.; Now, since FritzOS is over 17 sectors ( one floppy head has 17 sectors ( 18, sector 0 is included in the;  number ), we load another floppy head.ReadFloppy2:	mov al,		17	; The Second Head Full	inc dh			; Set it to the second head	int 13h			; Read the floppy disk.	jc ReadFloppy2		; If there was a error, try again.; Get ready to set PMode ( Protected Mode)SetPMode:        cli			; Stop BIOS interrups - Protected Mode can't handle interrupts without a				;  PMode IDT. The BIOS loads a Real-Mode IDT, and Protected Mode has different				;   exceptions and other things. So FritzOS can't handle interrupts and IRQ's				;    currently.        ; Load a temporary GDTR. You need a GDT to set up the PMode selectors, and to allow the C++ kernel's	;  stack to function properly.	lgdt [ GDTR ]		; Load the GDTR.        ; Set Protected Mode ( PMode )        mov eax,	cr0        or eax,		1        mov cr0,	eax		; PMode bit set.	; Here we are now in Protected Mode	; BUT, we need to do this to make the CPU set the registers correctly:        jmp dword CodeSel:PMode; We are in protected mode here:[bits 32]PMode:        ; Put the Data Selector into eax for setting up other registers.        mov eax,	DataSel		; Data Selector.	; Make SS, DS, ES, FS and GS = the Data Selector ( In the GDT )        mov ss, eax        mov ds, eax        mov es, eax        mov fs, eax        mov gs, eax	; Set up the PMode stack:        mov ax, 0x10        mov ss, ax        mov esp, 0xFFFF ; To Fix...FritzOS will work correctly, all that I need to fix is make the stack			; larger.	; Stop the floppy motor from spinning ( since we are in PMode, the BIOS can't stop it so we stop it )         mov dl,		[ drive ]	; Select which motor to stop ( the floppy drive FritzOS booted from )	; Select Stop Floppy Motor function:	mov edx, 0x3f2	mov al, 0x0c	; Stop floppy motor:	out dx, al      ; Floppy Motor stopped!	        jmp dword CodeSel:9000h	; Jump to the C++ Kernel. The C++ Kernel is loaded at 9000h. So go there.; The global descriptor table this tells the computer where all the segments ( now selectors ) are.; This is just a temporary GDT. We will load a better one in the 2nd stage kernel.GDTR    dw GDTEnd-1      dd GDTGDTnullsel equ $-GDTGDT0          dd 0          dd 0CodeSel equ $-GDT          dw 0ffffh          dw 0          db 0          db 09ah          db 0cfh          db 0hDataSel equ $-GDT        dw 0ffffh        dw 0h        db 0h        db 092h        db 0cfh        db 0GDTEnd; This part makes sure the bootsector is 512 bytes.  times 509-($-$$) db 0	; 509 bytes because drive takes 1 byte and 0xAA55 takes 2, so correctly set the value			;  Otherwise, the bootsector will be too big or small, if that happens, FritzOS will			;   not work correctly.; This tells the BIOS to load the bootsector, ALWAYS need this. The BIOS sees this as a signal that this is;  a bootable disk.	dw 0xAA55; For storing which floppy drive FritzOS booted from	drive db 0; End of boot.asm;_____________________________________________________________________________________________________________

?? 快捷鍵說明

復制代碼 Ctrl + C
搜索代碼 Ctrl + F
全屏模式 F11
切換主題 Ctrl + Shift + D
顯示快捷鍵 ?
增大字號 Ctrl + =
減小字號 Ctrl + -
亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频
91美女片黄在线| 欧美日韩在线电影| 欧美视频你懂的| 国产性色一区二区| 日产欧产美韩系列久久99| 成人在线视频首页| 欧美电影免费观看高清完整版在线| 中文字幕欧美国产| 国产在线麻豆精品观看| 欧美欧美欧美欧美首页| 亚洲精品水蜜桃| 成人午夜精品在线| 亚洲精品亚洲人成人网| 成人高清在线视频| 国产亚洲欧美在线| 激情六月婷婷久久| 日韩精品一区二区三区视频播放| 亚洲一区二区三区自拍| 99精品视频在线播放观看| 国产日韩欧美麻豆| 国产一区二区在线观看视频| 日韩一区二区免费电影| 香蕉久久夜色精品国产使用方法| 色婷婷国产精品综合在线观看| 中文字幕乱码亚洲精品一区| 成人午夜精品一区二区三区| 国产精品污污网站在线观看| 国产成人精品亚洲777人妖| 久久亚洲二区三区| 国产精品99久久久久久久vr | 日韩精品午夜视频| 欧美性大战久久| 亚洲成在线观看| 91精品国产美女浴室洗澡无遮挡| 亚洲成人激情社区| 欧美一级生活片| 精品无人区卡一卡二卡三乱码免费卡| 日韩精品一区二区三区视频| 国产精品一区二区三区网站| 国产精品天美传媒| 色婷婷综合久久久中文一区二区 | 久久久国际精品| 成年人网站91| 一区二区三区在线观看动漫| 欧洲人成人精品| 亚洲成av人综合在线观看| 777亚洲妇女| 国精产品一区一区三区mba桃花 | 精品成人一区二区三区| 国产又黄又大久久| 中文字幕制服丝袜一区二区三区| 99re热这里只有精品免费视频| 一区二区三区在线视频观看| 欧美妇女性影城| 韩国一区二区视频| 亚洲欧美在线aaa| 欧美日韩成人综合在线一区二区 | 亚洲va欧美va人人爽| 日韩一级大片在线观看| 欧美二区三区的天堂| 九九热在线视频观看这里只有精品 | 精品奇米国产一区二区三区| 粗大黑人巨茎大战欧美成人| 亚洲自拍与偷拍| 欧美精品一区二区三区在线| 91在线视频观看| 日本不卡1234视频| 国产精品色哟哟| 9191精品国产综合久久久久久 | 国产免费成人在线视频| 91色在线porny| 蜜臀av一区二区在线免费观看| 日本一区二区三区国色天香| 欧美日韩国产经典色站一区二区三区 | 日本一区二区视频在线观看| 色综合色狠狠天天综合色| 麻豆成人久久精品二区三区红 | 精品系列免费在线观看| 亚洲乱码一区二区三区在线观看| 日韩色视频在线观看| 91在线观看免费视频| 麻豆精品在线观看| 亚洲精品欧美在线| 欧美激情一区二区在线| 欧美精品v日韩精品v韩国精品v| eeuss鲁一区二区三区| 美女精品一区二区| 亚洲国产成人av好男人在线观看| 久久蜜桃一区二区| 日韩精品一区二区在线观看| 精品视频一区二区不卡| 成人久久18免费网站麻豆| 久久激情综合网| 五月天一区二区| 亚洲制服欧美中文字幕中文字幕| 国产女同互慰高潮91漫画| 精品99一区二区三区| 在线播放91灌醉迷j高跟美女| 99国产精品99久久久久久| 国产精品一区专区| 国产精品自拍毛片| 久久成人久久鬼色| 美女www一区二区| 日本不卡不码高清免费观看| 午夜欧美2019年伦理| 亚洲成av人片一区二区梦乃| 亚洲综合在线免费观看| 一区在线观看免费| 亚洲欧洲精品成人久久奇米网| 久久久国产精华| 国产亚洲欧美日韩日本| 久久久99久久| 中文字幕欧美日本乱码一线二线| 国产欧美一区二区三区鸳鸯浴| 久久综合中文字幕| 欧美精品一区二| 亚洲综合免费观看高清在线观看| 亚洲女人小视频在线观看| 亚洲男人电影天堂| 亚洲精品国产一区二区精华液| 亚洲精品乱码久久久久久| 亚洲国产综合色| 日本欧美一区二区| 久久精品国产精品青草| 国产在线播精品第三| 成人免费观看av| 色偷偷久久一区二区三区| 欧美亚日韩国产aⅴ精品中极品| 欧美日韩一区二区三区四区五区| 欧美剧情电影在线观看完整版免费励志电影| 欧美综合色免费| 日韩一区二区三区视频在线| 欧美岛国在线观看| 国产欧美精品一区| 亚洲精品中文字幕乱码三区| 日韩精品91亚洲二区在线观看 | 美国一区二区三区在线播放| 国产一区美女在线| 99视频在线精品| 欧美日韩高清一区| 精品不卡在线视频| 综合中文字幕亚洲| 日韩成人免费在线| av影院午夜一区| 欧美女孩性生活视频| 久久久久久久精| 亚洲一区在线观看视频| 精品制服美女久久| 色婷婷亚洲精品| 欧美成人女星排名| 亚洲精品免费电影| 国产综合色视频| 欧美主播一区二区三区美女| 久久久久青草大香线综合精品| 亚洲欧美国产三级| 国产一区二区网址| 欧美三级乱人伦电影| 久久久久久久久久久电影| 亚洲成人在线免费| 成人激情图片网| 精品国产青草久久久久福利| 亚洲视频一二三| 国产一区二区在线影院| 欧美日韩一区视频| 亚洲精品视频免费看| 国产毛片一区二区| 4hu四虎永久在线影院成人| 国产精品色眯眯| 国产精品资源在线看| 欧美一级黄色录像| 一区二区理论电影在线观看| 丁香亚洲综合激情啪啪综合| 日韩一区二区免费在线电影| 亚洲自拍偷拍麻豆| 91在线一区二区三区| 欧美国产日韩一二三区| 另类综合日韩欧美亚洲| 欧美日韩视频在线观看一区二区三区 | 国产一区二区按摩在线观看| 欧美男男青年gay1069videost| 亚洲色图欧美偷拍| 成人免费视频免费观看| 精品国产123| 麻豆成人久久精品二区三区小说| 欧美日韩综合色| 一区二区三区四区在线免费观看| 成人黄色免费短视频| 久久久久久电影| 久久99久久99| 欧美一区二区三级| 日韩精品乱码免费| 日韩网站在线看片你懂的| 视频在线在亚洲| 欧美一区二区三区精品| 免费在线观看精品| 91精品国产综合久久精品app| 亚洲成在人线免费| 欧美一级精品在线| 久久99热99| 久久久久久久久久久99999|