Recent Releases of tinykernel

tinykernel - TinyKernel 0.1.4 pre-alpha

TinyKernel v0.1.4 pre-alpha TinyKernel_Bobrossrtx-0.1.4.iso - 64707d86d63ffd82d78d14e8f4f2a9e8872a7e9a2abcc58fe8a8513128b09c9d

Changelog (https://github.com/TinyKern/TinyKernel/blob/master/CHANGELOG) - Keyboard input not registering. #3 - Unable to build with makefile. #6 - About Project layout. #4 - mcopy from grub-mkrescue fails #7

- C
Published by bobrossrtx over 4 years ago

tinykernel - TinyKernel 0.1.3 pre-alpha

TinyKernel v0.1.3 pre-alpha TinyKernel_Bobrossrtx-0.1.3.iso - 7e7dde7bf49764b6ba4dc7e46f295bc46dc749dbe7a86e2bee973747c386038e

Changes since v0.1.1 - Fixed a few issues (14d6088) - Added license (caad798) - Created keyboard header (5aef5d1) - Edited menu entry for grub + added license (56d3c43) - Updated version + License (1365047) - New version, License & new implementations (23741e4) - Fixed issues with requirements (5425dc3) - Updated version to 0.1.2 - Requirements: - qemu - grub - xorisso - binutils - gcc

- Removed un-necessary new "\n"s (f08802c)

Highlights

Printing

You can now output text as a string to the console instead of having to output one char at a time, This is done by introducing the print_string() function which iterates through all chars of the specified string and prints them out. using the print_char() function.

Example (new)

c print_string("Hello World!");

Example (old)

c // Assign each ASCII character to video buffer vga_buffer[0] = vga_entry('H', WHITE, BLACK); vga_buffer[1] = vga_entry('e', WHITE, BLACK); vga_buffer[2] = vga_entry('l', WHITE, BLACK); vga_buffer[3] = vga_entry('l', WHITE, BLACK); vga_buffer[4] = vga_entry('o', WHITE, BLACK); vga_buffer[5] = vga_entry(' ', WHITE, BLACK); vga_buffer[6] = vga_entry('W', WHITE, BLACK); vga_buffer[7] = vga_entry('o', WHITE, BLACK); vga_buffer[8] = vga_entry('r', WHITE, BLACK); vga_buffer[9] = vga_entry('l', WHITE, BLACK); vga_buffer[10] = vga_entry('d', WHITE, BLACK);

New Lines

You can now print a new line between printing strings using the print_new_line() function. This allows you to have new lines between text without having to print the new line char specifically.

Example

c print_string("Hello World!"); print_new_line(); print_string("Goodbye World!");

Colors

You can now set the color of a string by assigning either g_fore_color or g_back_color to any of the colors specified inside of include/kernel.h. You can also reset the colors to black & white by using the default_colors() function.

Example

c g_fore_color = BRIGHT_GREEN; // Setting foreground text of 'Hello World!' to bright green print_string("Hello World!"); print_new_line(); default_colors(); // Reseting to default colors print_string("Goodbye World!");

- C
Published by bobrossrtx almost 5 years ago