ScrapExplorer - boot.s
Home / arch / x86 / phoenix / src Lines: 1 | Size: 925 bytes [Download] [Show on GitHub] [Search similar files] [Raw] [Raw (proxy)][FILE BEGIN]1; SPDX-License-Identifier: GPL-3.0 2; Phoenix 3; 4; Main bootloader code 5; 6; COPYRIGHT NOTICE 7; Copyright (C) 2024 0x4248 and phoenix contributors 8; Redistribution and use in source and binary forms, with or without 9; modification, are permitted provided that the license is not changed. 10; 11; This software is free and open source. Licensed under the GNU general 12; public license version 3.0 as published by the Free Software Foundation. 13 14org 0x7C00 15bits 16 16 17start: 18 mov ah, 0x02 ; BIOS: Read floppy 19 mov al, 25 ; number of sectors to read 20 mov ch, 0 ; cylinder 21 mov cl, 2 ; sector 22 mov dh, 0 ; head 23 mov dl, 0x00 ; floppy drive 24 mov bx, 0x8000 ; memory address to load kernel 25 int 0x13 26 jc disk_error ; if carry flag set, halt 27 28 ; Far jump to kernel 29 jmp 0x0000:0x8000 30 31disk_error: 32 hlt 33 34; Pad to 510 bytes 35times 510 - ($ - $$) db 0 36dw 0xAA55 37[FILE END](C) 2025 0x4248 (C) 2025 4248 Media and 4248 Systems, All part of 0x4248 See LICENCE files for more information. Not all files are by 0x4248 always check Licencing.