boot.s

来自「用开源软件自己动手写操作系统的源码,在linux下面实现」· S 代码 · 共 30 行

S
30
字号
/* chapter2/1/boot.S   Author: Wenbo Yang <solrex@gmail.com> <http://solrex.cn>   This file is part of the source code of book "Write Your Own OS with Free   and Open Source Software". Homepage @ <http://share.solrex.cn/WriteOS/>.   This file is licensed under the GNU General Public License; either   version 3 of the License, or (at your option) any later version. */.code16.text	mov		%cs,%ax	mov		%ax,%ds	mov		%ax,%es	call	DispStr	jmp		.DispStr: 	mov		$BootMessage, %ax	mov		%ax,%bp	mov		$16,%cx	mov		$0x1301,%ax	mov		$0x00c,%bx	mov		$0,%dl	int		$0x10	retBootMessage:.ascii "Hello, OS world!".org 510.word 0xaa55

⌨️ 快捷键说明

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