minor cleanup and add dev enviroment files to gitignore

This commit is contained in:
2024-12-20 02:07:46 +00:00
parent 9918f2367e
commit d6e8a2a923
3 changed files with 4 additions and 25 deletions

3
.gitignore vendored
View File

@@ -6,4 +6,5 @@ build/*
bx_enh_dbg.ini bx_enh_dbg.ini
stevia-log stevia-log
.vscode/ .vscode/
*.map *.map
compose-dev.yaml

View File

@@ -47,7 +47,7 @@ InitFATDriver:
mov bx, dx ; set bx, should point at our partition mov bx, dx ; set bx, should point at our partition
mov eax, dword [bx + PartEntry_t.lba_start] mov eax, dword [bx + PartEntry_t.lba_start]
mov dword [fat32_state + FAT32_State_t.active_drive_lba_32], eax mov dword [fat32_state + FAT32_State_t.curr_drive_lba_32], eax
mov ax, fat32_bpb mov ax, fat32_bpb
mov si, ax mov si, ax
@@ -193,7 +193,7 @@ SearchFATDIR:
mov cx, 0xA ; max of 11 filename length of 11 characters mov cx, 0xA ; max of 11 filename length of 11 characters
; si points to the start of the current directory entry ; si points to the start of the current directory entry
mov di, BootTarget_str ; current memory location (8.3 name is at offset 0) mov di, BootTarget ; current memory location (8.3 name is at offset 0)
repe cmpsb ; compare the strings repe cmpsb ; compare the strings
pop di pop di

View File

@@ -169,8 +169,6 @@ main:
call EnterUnrealMode call EnterUnrealMode
print_string UnrealMode_OK_info print_string UnrealMode_OK_info
; FAT Driver setup ; FAT Driver setup
call InitFATDriver call InitFATDriver
print_string InitFATSYS_OK_info print_string InitFATSYS_OK_info
@@ -401,26 +399,6 @@ BootTarget:
; pre-bss init globals (generally const...but there are exceptions) ; pre-bss init globals (generally const...but there are exceptions)
; ;
align 8, db 0x00
boot_drive:
db 0x00
align 8, db 0x00
partition_offset:
dw 0x0000
align 8, db 0x00
vbr_fat32_bpb_ptr:
dw 0x0000
align 8, db 0x00
vbr_part_table_ptr:
dw 0x0000
;
; pre-bss init globals (generally const...but there are exceptions)
;
align 8, db 0x00 align 8, db 0x00
boot_drive: boot_drive:
db 0x00 db 0x00