📄 bootsect.s
字号:
#include "bootparam.h"#include "bios.h"/* bootsect is loaded into 0000:7c00 (not 07c0:0000), its will load setup into SETUPSEG, then setup contiue to load kernel */ .code16 .text cli ljmp $0x7c0,$nextnext: pushw %cs popw %ss xorw %sp,%sp movw $SETUPSEG,%ax movw %ax,%es xorw %bx,%bx movb $READ,%service movb $DISKA,%drive movb $0,%cyl movb $0,%head movb $2,%sect /* sector count from 1 */ movb $SETUPSIZE/SECTSIZE,%nsect int $0x13ioerr: jc ioerr ljmp $SETUPSEG,$0 .org 510magic: .word 0xaa55
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -