From c8851baea6dbf7ad1fb23171335073d03966cfd3 Mon Sep 17 00:00:00 2001 From: shockrah Date: Sat, 14 Sep 2019 23:42:49 -0700 Subject: [PATCH] Structure: renamed .asm files to .s extension Makefile: Building .s first over Bochs conf: changed display server to x instead of sdl Changed function defs to not have the parameter names for less confusion --- bochsrc.conf | 2 +- framebuffer.c | 10 ++++------ framebuffer.h | 13 ++++++------- io.h | 4 ++-- io.asm => io.s | 0 loader.asm => loader.s | 0 makefile | 10 +++++----- 7 files changed, 18 insertions(+), 21 deletions(-) rename io.asm => io.s (100%) rename loader.asm => loader.s (100%) diff --git a/bochsrc.conf b/bochsrc.conf index 96345f8..02b96e2 100644 --- a/bochsrc.conf +++ b/bochsrc.conf @@ -1,5 +1,5 @@ megs: 32 -display_library: sdl +display_library: x romimage: file=/usr/share/bochs/BIOS-bochs-latest vgaromimage: file=/usr/share/bochs/VGABIOS-lgpl-latest ata0-master: type=cdrom, path=os.iso, status=inserted diff --git a/framebuffer.c b/framebuffer.c index 301d626..e6fa3a3 100644 --- a/framebuffer.c +++ b/framebuffer.c @@ -6,7 +6,7 @@ // | 15-8 | 7-4 | 0-3 // | Asci | FG | BG #include "framebuffer.h" -#include "io.h" +//#include "io.h" static char* Frame_Buffer = (char*)FRAME_BUFFER_ADDR; //static char* Frame_Buffer_End = (char*)(FRAME_BUFFER_ADDR + AREA); @@ -21,7 +21,7 @@ void write_cell_fb(unsigned cell, char c, char fg, char bg) { } -void clear_fb() { +void clear_fb(void) { for(unsigned cell=0;cell