my latest os code, but its almost basically taken 95% from gemini. (i was on the right path, but i think my bad fat info ruined it)
; floppy_boot.asm ; A simple legacy boot sector example to read a sector from floppy and jump to it. ; ; To assemble with NASM: nasm -f bin floppy_boot.asm -o floppy_boot.bin ; To write to a floppy image (e.g., in a VM): dd if=floppy_boot.bin of=floppy.img bs=512 count=1 conv=notrunc org 0x7C00 ; Boot sectors are loaded at 0x7C00 BITS 16 ; We are in 16-bit real mode start: jmp short setup_segments ; --- Data --- ; These are placeholders for a typical boot sector. ; In a real scenario, you'd have more data here, including a Partition Table. OEM_ID db "MSWIN4.1" ; OEM ID BytesPerSector dw 512 ; Bytes per sector SectorsPerCluster db 1 ; Sectors per cl...