4,436
社区成员
发帖
与我相关
我的任务
分享
org 07c00h
mov ax, cs
mov ds, ax
mov es, ax
call DispStr
jmp $
DispStr:
mov ax, BootMessage
mov bp, ax
mov cx, 16
mov ax, 01301h
mov bx, 000ch
mov dl, 0
int 10h
ret
BootMessage: db "hello, Os world!"
times 510-($-$$) db 0
dw 0xaa55
Disk /dev/sdb: 32 MB, 32718848 bytes
4 heads, 32 sectors/track, 499 cylinders, total 63904 sectors
Units = sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disk identifier: 0x00000000
Device Boot Start End Blocks Id System
/dev/sdb1 * 32 63903 31936 4 FAT16 <32M
dd -if=boot.bin of=/dev/sdb1