#*\r
#------------------------------------------------------------------------------\r
\r
+\r
+\r
+\r
+\r
\r
.equ FAT_DIRECTORY_ENTRY_SIZE, 0x020\r
.equ FAT_DIRECTORY_ENTRY_SHIFT, 5\r
shrw %ax # FatOffset = ClusterNumber*3 / 2\r
pushw %si # Save si\r
movw %ax, %si # si = FatOffset\r
- shrw %ax # ax = FatOffset >> BLOCK_SHIFT\r
+ shrw $BLOCK_SHIFT, %ax # ax = FatOffset >> BLOCK_SHIFT\r
addw ReservedSectors(%bp), %ax # ax = FatSectorNumber = ReservedSectors + (FatOffset >> BLOCK_OFFSET)\r
- andw BLOCK_MASK,%si # si = FatOffset & BLOCK_MASK\r
+ andw $BLOCK_MASK,%si # si = FatOffset & BLOCK_MASK\r
cmpw %dx, %ax # Compare FatSectorNumber to CachedFatSectorNumber\r
je SkipFatRead\r
movw $2, %bx\r
DiskError: \r
pushw %cs\r
popw %ds\r
- leaw %cs:ErrorString, %si\r
+ leaw ErrorString, %si\r
movw $7, %cx\r
jmp PrintStringAndHalt\r
\r
ErrorString: \r
.byte 'S', 0x0c, 'E', 0x0c, 'r', 0x0c, 'r', 0x0c, 'o', 0x0c, 'r', 0x0c, '!',0x0c\r
\r
- #.org 0x0242 # For Code size overflow, Modified this just for pass build\r
+ .org 0x0241 # For Code size overflow, Modified this just for pass build\r
LBAOffsetForBootSector: \r
.long 0x0\r
\r