ScrapExplorer - kernel.s

Home / arch / x86 / phoenix / src Lines: 1 | Size: 1234 bytes [Download] [Show on GitHub] [Search similar files] [Raw] [Raw (proxy)]
[FILE BEGIN]
1; SPDX-License-Identifier: GPL-3.0 2; Phoenix 3; 4; Kernel entry point 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 14bits 16 15 16start: 17 cli 18 xor ax, ax 19 mov ss, ax 20 mov sp, 0x9000 21 mov ax, 0x0800 22 mov ds, ax 23 mov es, ax 24 mov fs, ax 25 mov gs, ax 26 27 sti 28 jmp main 29 30%include "src/lib/print.s" 31%include "src/lib/colorscreen.s" 32%include "src/lib/keyboard.s" 33 34reboot: 35 mov ah, 0 36 mov al, 3 37 int 0x10 38 int 0x19 39 hlt 40 41; --- Main --- 42main: 43 mov si, msg0 44 call print_string 45 call new_line 46 mov si, msg1 47 call print_string 48 call new_line 49 50 mov ah, 0x0E 51 mov al, 0x20 52 53 int 0x10 54 55.loop: 56 mov si, msg2 57 call print_string 58 call wait_key 59 cmp al, 'r' 60 je reboot 61 cmp al, 'b' 62 je bluesc 63 call .loop 64 65 66msg0 db "Phoenix OS, System running!", 0 67msg1 db "Copyright (C) 2024 0x4248 GNU GPL v3", 0 68msg2 db "System running, press r to reboot", 0 69
[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.