我已經開始學彙編。我遇到了這些線。彙編代碼說明
;*************************************************;
; OEM Parameter block/BIOS Parameter Block
;*************************************************;
TIMES 0Bh-$+start DB 0
bpbBytesPerSector: DW 512
bpbSectorsPerCluster: DB 1
bpbReservedSectors: DW 1
我就聲明 「bpbBytesPerSector:DW 512」 的第一行混淆。這裏我認爲DW是定義詞。因此DW 512表示定義512個字表示1024個字節。現在標籤是「bpbBytesPerSector」。每扇區的字節數應該是512(這是我認爲的)。同樣,我不明白下兩行。 我完全困惑於此。有人可以解釋我。提前感謝。
謝謝。我明白了。 – narayanpatra 2010-11-05 06:24:01