I'm doing a boot-loader, which reads the second sector from the first head from the first cylinder of the hard drive. So to check if the program correctly reads the data, the author first writes to this sector.
; Magic number
times 510 - ($-$$) db 0
dw 0xaa55
; boot sector = sector 1 of cyl 0 of head 0 of hdd 0
; from now on = sector 2 ...
times 256 dw 0xdada ; sector 2 = 512 bytes
times 256 dw 0xface ; sector 3 = 512 bytes
So he writes two words after filling the first 512 byte. But times 256 dw 0xdada ; sector 2 = 512 bytes
, doesn't make sense for me? How will write it to the second sector, there is nothing 513.. in the statement.