30 lines
483 B
ArmAsm
30 lines
483 B
ArmAsm
.arch i8086,jumps
|
|
.code16
|
|
|
|
.section .init
|
|
.global _start
|
|
_start:
|
|
#ifndef NOBPB
|
|
jmp l0
|
|
nop
|
|
|
|
.ascii "IBM 3.1"
|
|
bpb_bytespersect: .word 512
|
|
bpb_sectspercluster: .byte 2
|
|
bpb_reservedsects: .word 1
|
|
bbp_fats: .byte 2
|
|
bpb_rootentries: .word 112
|
|
bpb_localsectors: .word 720
|
|
bpb_mediadescr: .byte 0xfd
|
|
bpb_sectsperfat: .word 2
|
|
|
|
l0:
|
|
#endif // NOBPB
|
|
cli
|
|
xor %ax, %ax
|
|
mov %ax, %ds
|
|
mov %ax, %ss
|
|
mov $0x7c00, %sp
|
|
sti
|
|
jmp main
|