bootsect.S Makefile

bootsect.S

.code16

.global _bootstart

.equ BOOTSEG, 0X07C0

ljmp $BOOTSEG, $_bootstart

_bootstart:
    jmp _bootstart

.=510

signature:
    .word 0xaa55

Makefile

all: Image

.PHONY=clean

bootsect.o:
    @as --32 bootsect.S -o bootsect.o
clean:
    @rm -f *.o
objdump -m i8086 -S bootsect.o

猜你喜欢

转载自blog.csdn.net/familyshizhouna/article/details/80656072