22. November 2024, 21:49
; multiboot configMBOOT_FLAGS equ MBOOT_PAGE_ALIGN | MBOOT_MEMORY_INFO | MBOOT_AOUT_KLUDGE | MBOOT_VIDEO_INFO; start of file_start_of_file:; MBoot Header, 4-byte alignedalign 4, db 0_mboot: dd MBOOT_MAGIC dd MBOOT_FLAGS dd 0 - MBOOT_MAGIC - MBOOT_FLAGS dd _mboot dd _start_of_file dd _end_of_data dd _end_of_file dd _entry_point dd 0 dd 800 dd 600 dd 16_entry_point: ; get VbePhysBasePtr mov edx, dword [ebx+mbti_vbe_mode_info] mov eax, dword [edx+VbeModePhysBasePtr] mov dword [VbePhysBasePtr], eax ; color screen mov edi, dword [VbePhysBasePtr] mov eax, 0xCC mov ecx, 600 * 800 rep stosd; data sectionVbePhysBasePtr dd 0_end_of_data:; bss section_end_of_file
timeout 8default 0title testOS root (fd0) kernel /boot/loader.gz vbematch 800 600 16