some bpb/ebpb tweaks

This commit is contained in:
2024-10-04 11:48:25 -04:00
parent c1c6b25e6e
commit db1d0295c5

View File

@@ -17,8 +17,6 @@
; LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, ; LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
; OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE ; OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
; SOFTWARE. ; SOFTWARE.
[BITS 16] [BITS 16]
[ORG 0x7C00] [ORG 0x7C00]
[CPU KATMAI] [CPU KATMAI]
@@ -28,11 +26,10 @@ phy_bpb_start:
; fill BPB area with 0x00 since we skip writing this part to disk ; fill BPB area with 0x00 since we skip writing this part to disk
; but we need it for the 'jmp short entry; nop' above ; but we need it for the 'jmp short entry; nop' above
times 33 db 0x00 times 33 db 0x00
phy_ebpb_start: phy_ebpb_start:
; fill BPB area with 0x00 since we skip writing this part to disk ; fill eBPB area with 0x00 since we skip writing this part to disk
; but we need it for the 'jmp short entry; nop' above
times 54 db 0x00 times 54 db 0x00
%include "cdecl16.inc" %include "cdecl16.inc"
%include "entry.inc" %include "entry.inc"
init: init:
@@ -102,7 +99,7 @@ main:
.sig_ok: .sig_ok:
mov ax, fat32_bpb_SIZE ; size in byte mov ax, fat32_bpb_SIZE ; size in byte
push ax push ax
mov ax, phy_bpb_start ; start of bpb mov ax, phy_bpb_start ; start of bpb
push ax push ax
mov ax, fat32_bpb ; defined in memory.inc, destination mov ax, fat32_bpb ; defined in memory.inc, destination
push ax push ax
@@ -111,7 +108,7 @@ main:
mov ax, fat32_ebpb_SIZE ; 72 bytes of data mov ax, fat32_ebpb_SIZE ; 72 bytes of data
push ax push ax
mov ax, phy_ebpb_start ; start of ebpb mov ax, phy_ebpb_start ; start of ebpb
push ax push ax
mov ax, fat32_ebpb ; defined in memory.inc, destination mov ax, fat32_ebpb ; defined in memory.inc, destination
push ax push ax