Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Corrected crash on FAT16 and FAT12.

  • Loading branch information...
commit 83cddc6c075b7366802c68b5e7fc60ab9c14baf6 1 parent 5bb0292
@migle authored
Showing with 2 additions and 2 deletions.
  1. +2 −2 BootDuet.S
View
4 BootDuet.S
@@ -762,14 +762,14 @@ fread.4:
pushw %dx # save cluster pointer index
#elif FAT == 16
- movw main_wBps(%bp),%bx # BX = bytes per sector
+ movw fread_wBps(%bp),%bx # BX = bytes per sector
shrw $1,%bx # BX = ptrs per sector
xorw %dx,%dx
divw %bx # AX = FAT sector, DX = ptr
pushw %dx # save cluster pointer index
#elif FAT == 12
- movw main_wBps(%bp),%bx # BX = bytes per sector
+ movw fread_wBps(%bp),%bx # BX = bytes per sector
shlw $1,%bx # BX = ptrs per trio
xorw %dx,%dx
divw %bx # AX = FAT trio, DX = ptr
Please sign in to comment.
Something went wrong with that request. Please try again.