correct size of operand in PrintDWORD

added some magic debug points for stuff that isn't working as well.
This commit is contained in:
2024-10-15 13:32:36 -04:00
parent 56e8081118
commit 5159ef8a7c

View File

@@ -180,19 +180,26 @@ main:
call GetMemoryMap call GetMemoryMap
print_string MemoryMap_OK_cstr print_string MemoryMap_OK_cstr
__BOCHS_MAGIC_DEBUG
; FAT Driver setup ; FAT Driver setup
call InitFATDriver call InitFATDriver
print_string InitFATSYS_OK_cstr print_string InitFATSYS_OK_cstr
; ;
; Find first cluster of bootable file ; Find first cluster of bootable file
; __BOCHS_MAGIC_DEBUG
call SearchFATDIR call SearchFATDIR
push dword eax push dword eax ; save first cluster of bootable file
print_string FileFound_OK_cstr print_string FileFound_OK_cstr
push dword eax
pop dword eax
push dword eax ; print Cluster of boot file
call PrintDWORD ; void PrintDWORD(uint32_t dword) call PrintDWORD ; void PrintDWORD(uint32_t dword)
print_string NewLine_cstr print_string NewLine_cstr
; TODO: using first cluster information, start loading the kernel to memory
; TODO: going to need an elf parser, some unreal mode file buffer functions to move the data
hcf: hcf:
ERROR STEVIA_DEBUG_OK ERROR STEVIA_DEBUG_OK
@@ -262,7 +269,7 @@ PrintDWORD:
lea si, [IntToHex_table] lea si, [IntToHex_table]
mov ebx, 16 ; base-16 mov ebx, 16 ; base-16
mov dword eax, [bp + 4] ;val mov eax, dword [bp + 4] ;val
xor edx, edx xor edx, edx
xor cx, cx xor cx, cx