diff --git a/LINES b/LINES index dc38aefecb6852976201f4162efbd25b07f5592e..788c5b7a21af424b7dda1ba2f7784a71d25727d4 100644 --- a/LINES +++ b/LINES @@ -14,5 +14,5 @@ 2021-2-23 0.484: 484 lines, 5 files, rain -2021-2-23 0.490: 490 lines, 6 files, rain +2021-2-23 0.509: 509 lines, 6 files, rain diff --git a/Makefile b/Makefile index 6d0b1e2c8db6b0bf17d6dded88b9978f0c25d56c..388a8b107430ec87c8cc02e154ee303bde6f953e 100644 --- a/Makefile +++ b/Makefile @@ -6,3 +6,7 @@ all: clear: rm boot/x86/*.bin kernel/*.bin cunix.img + +lines: + wc boot/x86/boot.asm boot/x86/loader.asm kernel/kernel.asm include/arch/x86/* -l + diff --git a/README.md b/README.md index ffb29b9230525db06e6f0432f39f4ea34c67465f..64e9d4d8e7d4d284e169dbd483983ba6048f2a81 100644 --- a/README.md +++ b/README.md @@ -42,7 +42,7 @@ Cunix kernel let `readdisk.inc` smaller, but we just can use CHS or LBA, not both. -`0.490s-kernel`: +`0.509s-kernel`: load kernel to 0x8200-0x9200 for 4KB, kernel.asm display 'K' to screen. diff --git a/kernel/kernel.asm b/kernel/kernel.asm index 39c2dfe4c5c054361727bb5ee71a6918f3c17cb0..d15e678b0811fbe4e4c446254f3329af896b875b 100644 --- a/kernel/kernel.asm +++ b/kernel/kernel.asm @@ -1,7 +1,26 @@ +; Copyright (C) 2021 Rain + +; This file is part of Cunix. +; Cunix is free software: you can redistribute it and/or modify +; it under the terms of the GNU General Public License as published by +; the Free Software Foundation, either version 3 of the License, or +; (at your option) and later version. + +; Cunix is distributed in the hope that it will be useful, +; but WITHOUT ANY WARRANTY; without even the implied warranty of +; MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +; GNU General Public License for more details. + +; You should have received a copy of the GNU General Public License +; along with Cunix. If not, see . + + + + bits 64 _start: mov byte [0xb8000], 'K' - hlt jmp $ +