⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 pseudo.s

📁 linux 的引导程序源码The Microsoft&reg Windows&reg Software Development Kit (SDK) provides the documentation
💻 S
字号:
; pseudo.S -- produce a pseudo kernel header;;	This file is useful for booting arbitrary binary images;	at	0x1000:0000;; Copyright 2002 John Coffman.; All rights reserved.; ; Licensed under the terms contained in the file 'COPYING' in the ; source directory.;#define DEBUG 0#define DELL_DIRTY_HACKSYSSEG	=  0x1000	; DEF_SYSSEGSETUPSEG = 0x9020	; DEF_SETUPSEG		.text#if 0.globl	_main_main:#endif		.globl	zerozero:; we want this to look like a bootable kernel image; so we include the following header;		jmp	begin		.ascii	"Sudo"		; NOT a real kernel; so,					;            avoid all patching		.word	0x0000		; header format version number		.word	0,0		; realmode switch, SETUPSEG		.word	SYSSEG		; SYSSEG -- load at 1000:0000		.word	id_string		.byte	0		; type of loader		.byte	0		; flags 0=load low		.word	0x200		; move size		dd	0x1000		; load us here		dd	0		; ramdisk image		.word	bs_helper,SETUPSEG	; kludge???		.word	modelist+1024	; heap end pointer;----------end of header------------		begin:	jmpi	0000,SYSSEG			; jmp to 0x1000:0000bs_helper:      int     0x19			;label here for kludgeid_string:	.ascii	"pseudo.b"		.byte	0		.blkb	zero+512-*modelist:theend:

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -