ScrapExplorer - lost-version.asm

Home / arch / x86 / x86bootdisk / src Lines: 1 | Size: 1395 bytes [Download] [Show on GitHub] [Search similar files] [Raw] [Raw (proxy)]
[FILE BEGIN]
1; SPDX-License-Identifier: PROPRIETARY 2; Lost version 3; 4; I seem to have found this on a random drive I had, I cant remember when I 5; made it but it was copyrighted 2024. 6; 7; This version seems to have the very advanced blue screen colour syscall, fun. 8; 9; Copyright (C) 2024 0x4248 10 11 12[ORG 0x7c00] 13[BITS 16] 14jmp start ; Jump to start 15 16start: 17 ; Sertting up the stack 18 xor ax, ax ; clear ax 19 mov ds, ax ; set ds to 0 20 cld ; clear direction flag 21 22 mov si, boot_msg ; set si to msg 23 call bios_print ; call bios_print 24 call blue_screen 25 call halt_cpu 26 27boot_msg db 'Booted!', 0, 13, 10 28 29bios_print: 30 lodsb ; load byte from si to al 31 or al, al ; check if al is 0 32 jz done ; if al is 0, jump to done 33 mov ah, 0x0E ; set teletype output 34 mov bh, 0 ; set page number 35 int 0x10 ; call bios interrupt 36 jmp bios_print ; jump to bios_print 37 38done: 39 ret 40 41blue_screen: 42 ; Before halting we set the screen to blue 43 mov ax, 0x0600 ; BIOS function to scroll (clear) the screen 44 mov ax, 0x0B00 ; BIOS function to set background color 45 mov bh, 0x00 ; Page number 46 mov bl, 0x01 ; Foreground: white (0xF), Background: blue (0x1) 47 int 0x10 ; Call BIOS interrupt to set color 48 49 50halt_cpu: 51 hlt ; halt the CPU 52 53times 510-($-$$) db 0 ; Fill the rest of the sector with 0 54db 0x55 ; Boot signature 55db 0xAA ; Boot signature 56
[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.