I am a Chinese studio in middle school.Perhaps Some mistake on Grammer or
word spending will be wrote in this letter.
I use gcc 3.3.4 to build a file.
the file is shown below.
.code16
.text
.globl start
start:
movw $0x0000,%ax
.org 510
.word 0xAA55
I build it with the command below.
gcc -traditional -c -nostdinc -o boot.o boot.s
ld -Ttext 0x0000 -s --oformat binary -o boot.bin boot.o
When I built it,I found the size of boot.bin is not 512byte,is 1024byte.
I think it is some error in this.
And
I thinke the code before is like this.
.code16
.text
.global _start
_start:
movw $0x0000,%ax
.org 510
.word 0xAA55
but I couldn't buld it success by Djgpp in Windows XP
Thank you for your reading.
I wait for your return.
Huangxiangkui
email:Huangxiangkui@msn.com