Commit Graph

53 Commits

Author SHA1 Message Date
Jarkko Toivanen bcf49f4fef
Framebuffer supports colour now 2024-01-26 18:38:18 +02:00
Jarkko Toivanen bbd80c4f78
Cleaning up 2024-01-26 18:23:51 +02:00
Jarkko Toivanen 3dd934bd83
Fixed R/G/B field information fetching from Multiboot 2024-01-13 03:28:43 +02:00
Jarkko Toivanen a0ba839215
Get sweet R/G/B positions as numbers for debugging 2024-01-13 02:36:35 +02:00
Jarkko Toivanen e4172c14bb
Fancy colour loop 2023-09-21 21:06:37 +03:00
Jarkko Toivanen deadd739fb
Another Readme update for new improved framebuffer 2023-09-08 12:06:58 +03:00
Jarkko Toivanen 9ef19730e3
Forgot a stray CLD instruction lol 2023-09-08 12:03:52 +03:00
Jarkko Toivanen f9c0bd3db6
Improved framebuffer compatibility and memory safeguard 2023-09-08 12:02:02 +03:00
Jarkko Toivanen e9eaf218a1
Updating the file nobody never reads 2023-09-07 21:32:00 +03:00
Jarkko Toivanen 55fb99f0e1
Not the whole screenbuffer width was accessible 2023-09-06 20:28:25 +03:00
Jarkko Toivanen 1b9f7f8ee5
Making a working (at last!) 24/32 bpp framebuffer but only grayscale.
Cool logo included
2023-09-06 19:58:40 +03:00
Jarkko Toivanen 3c121e97f4
Framebuffer putpixel LEGGOOO! (disabled paging lol) 2023-08-02 20:16:43 +03:00
Jarkko Toivanen 8709de5747
Better separation on BSS if it grws or something 2023-08-02 14:19:46 +03:00
Jarkko Toivanen e9b363221a
Fixing makefile 2023-08-02 13:49:16 +03:00
Jarkko Toivanen 1034574d1e
Making the Multiboot structure a bit shorter to conserve line length 2023-08-01 21:23:14 +03:00
Jarkko Toivanen 208d05b139
Forgat my os is supposed to be called rOSka 2023-08-01 21:05:36 +03:00
Jarkko Toivanen cbaa9e00f9
Trying FASM instead of TCC hybrid proved to be a good choise. Binary is layed out flat and sections are not rearranged so no need to worry about Multiboot structures moving around.
Also managed to get paging (first 4M is identity mapped, but hey it's a start).
2023-08-01 05:02:17 +03:00
Jarkko Toivanen 148634efff
Pagingggggggg! (identity mapped low 4M) 2023-07-25 05:45:32 +03:00
Jarkko Toivanen d542ed42d6
Serial init error handling removed: no more VGA text memory to print to 2023-07-25 01:02:13 +03:00
Jarkko Toivanen e16da3adc8
Multiboot parsing and uitoa impl 2023-07-24 21:48:21 +03:00
Jarkko Toivanen ebf9982c07
Improved serial init handling. Optimized pushing/poping. 2023-07-24 17:08:48 +03:00
Jarkko Toivanen 9fc1cd0064
Passing the strings to string prints through stack 2023-07-24 05:17:57 +03:00
Jarkko Toivanen e2572d50af
FASMMMMMMM 2023-07-24 04:20:54 +03:00
Jarkko Toivanen 946c9e468d
Take AOUT_KLUDGE into account and not just be there doing nothing 2023-06-24 04:13:47 +03:00
Jarkko Toivanen e21e42d318
Switched FASM to NASM
If I'm gonna port a C compiler I might as well use and port NASM as it 
is more widely used anyway
2023-06-23 23:10:06 +03:00
Jarkko Toivanen 5badddbada
Using framebuffer info for putpixel loop instead of hardcoded values
(never expect Multiboot to give you what you want!)
2023-06-23 22:54:46 +03:00
Jarkko Toivanen b2c4091216
Fixing multiboot section to be a section 2023-06-23 22:54:05 +03:00
Jarkko Toivanen 998fe3d26d
Getting memory information 2023-06-23 22:53:43 +03:00
Jarkko Toivanen 5ec345e59f
Style: Converting spaces to tabs 2023-06-22 02:28:33 +03:00
Jarkko Toivanen e472492ee3
Making stuff work again 2023-06-22 02:13:20 +03:00
Jarkko Toivanen 086eba4ea4
Don't try to put pixel off-screen 2023-06-18 07:49:43 +03:00
Jarkko Toivanen fadccef0df
Putting pixels to screen 2023-06-18 07:47:52 +03:00
Jarkko Toivanen 5bfb8d9e97
Implementing unsigned itoa (uint to str) 2023-06-18 06:25:19 +03:00
Jarkko Toivanen 1a9201b529
Code organizing 2023-06-18 05:37:30 +03:00
Jarkko Toivanen 79dcbb8393
Plotting fancy stripe on graphical framebuffer 2023-06-16 05:53:26 +03:00
Jarkko Toivanen 743b22ccd6
Implementing and using ultoa (unsigned long to string) 2023-06-16 03:57:09 +03:00
Jarkko Toivanen 76c9075f71
Separating itoa and ltoa to own file 2023-06-15 06:40:38 +03:00
Jarkko Toivanen dd78c1cc7d
Fix: UNavailable videoinfo not on new line 2023-06-15 03:09:41 +03:00
Jarkko Toivanen c33a57fa33
Basic serial driver 2023-06-15 03:06:27 +03:00
Jarkko Toivanen e9fd2e98bf
Removing an oopsie 2023-06-14 20:50:21 +03:00
Jarkko Toivanen f45698bb00
Cursor disabling moced from assembly to C 2023-06-14 20:49:47 +03:00
Jarkko Toivanen 94657a7b47
OUTB implementation 2023-06-14 20:49:23 +03:00
Jarkko Toivanen 6547181959
C Header guards 2023-06-14 20:40:50 +03:00
Jarkko Toivanen e1230ce493
Qemu serial stdout 2023-06-14 20:39:30 +03:00
Jarkko Toivanen 968ea605d8
Stuff. And thing. Yeaaaaah! 2023-06-14 20:06:27 +03:00
Jarkko Toivanen 3d7140b3fc
Makefile: Handle disk image mounting 2023-06-14 19:28:16 +03:00
Jarkko Toivanen 3b24a64a92
Ignoring disk image 2023-06-14 19:16:05 +03:00
Jarkko Toivanen f1b11875d7
Printing int/hex values, yayyyy! (videomode number) 2023-06-14 06:19:50 +03:00
Jarkko Toivanen 7d576d3cd5
Fixing vga_write_line_color newline colour 2023-06-14 05:21:38 +03:00
Jarkko Toivanen 663a6317c4
Checking multiboot stuff oh yah 2023-06-14 05:13:21 +03:00