ScrapExplorer - boot.asm
Home / arch / x86 / x86bootdisk / src Lines: 1 | Size: 1362 bytes [Download] [Show on GitHub] [Search similar files] [Raw] [Raw (proxy)][FILE BEGIN]1; SPDX-License-Identifier: GPL-3.0 2; x86bootdisk 3; 4; boot.asm 5; 6; COPYRIGHT NOTICE 7; Copyright (C) 2024-2025 0x4248 and 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 14[ORG 0x7c00] 15[BITS 16] 16jmp start ; Jump to start 17 18start: 19 ; Sertting up the stack 20 xor ax, ax ; clear ax 21 mov ds, ax ; set ds to 0 22 cld ; clear direction flag 23 24 mov si, boot_msg ; set si to msg 25 call bios_print ; call bios_print 26 jmp bios_print ; jump to bios_print 27 hlt ; halt the system 28 29 30 31bios_print: 32 lodsb ; load byte from si to al 33 or al, al ; check if al is 0 34 jz done ; if al is 0, jump to done 35 mov ah, 0x0E ; set teletype output 36 mov bh, 0 ; set page number 37 38 int 0x10 ; call bios interrupt 39 jmp bios_print ; jump to bios_print 40 41done: 42 ret 43 44boot_msg db 'Booted!', 0 45 46times 510-($-$$) db 0 ; Fill the rest of the sector with 0 47db 0x55 ; Boot signature 48db 0xaa ; Boot signature 49[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.