I started to learn assembly. I came across these lines.
;*************************************************;
; OEM Parameter block / BIOS Parameter Block
;*************************************************;
TIMES 0Bh-$+start DB 0
bpbBytesPerSector: DW 512
bpbSectorsPerCluster: DB 1
bpbReservedSectors: DW 1
I got confused in the first line of the msgstr declaration "bpbBytesPerSector: DW 512". Here I think DW defines a word. So DW 512 means 512 words means 1024 bytes. Now the label is "bpbBytesPerSector". Bytes per sector should be 512 (this is what I think). Similarly, I cannot understand the following two lines. I am completely confused by this. Can someone explain to me. Thanks in advance.
source
share