oracle centos

Cerrado Publicado hace 2 años Pagado a la entrega
Cerrado Pagado a la entrega

This is the second part of your semester long assignment. This is all about trying to build functions that will perform console printing.

When finished, take your my_os folder and ZIP it up (or .RAR or .TAR or .7Z, whatever you want! I just want you to submit ONE archive file).

You are going to generate a folder called include in the root of your my_os folder. Generate a file called console.h in that folder.

You are then going to create a folder called shell in the root of your my_os folder. Inside shell you are going to generate a file called console.c.

Since console.c is going to need to be compiled, make sure you adjust your Makefile so you compile the correct files.

console.h should be used to declare the function headers you will use in console.c and also declare any constant or static variables you will need (for example you will more than likely want to put the VGA_HEIGHT and VGA_WIDTH variables in there).

console.c will then contain three functions whose function header are defined as

void print_character(char)

void print_string(char*)

void print_line(char*)

The first function will take a single character as a parameter and print it to the screen at the current position of your terminal cursor.

The second function will take a string parameter given to it and print it to the screen starting at current position of your terminal cursor.

The third function will do the same as the second function, but will add a new line at the end to move the terminal print position to the beginning of the next line.

The first use of the function will print to the screen in the upper left corner starting at the first address in the video buffer.

To test this is working, alter your main function in kernel.c to make multiple calls to these functions such that

char* str1 = "HELLO";

char* str2 = "WORLD";

char* str3 = "TODAY";

print_string(str1);

print_line(str2);

print_string(str3);

Would make the output at your terminal read

HELLOWORLD

TODAY

Notice that you will have to keep a variable that holds where the current terminal position is! Your header file is a good file for this information.

A complete assignment is one that meets the following qualifications:

1) shell folder

2) console.c with function implementation in shell folder

3) console.h inside an include folder with function header and static / constant variables you will need

4) An adjusted kernel.c that includes the appropriate functions and is altered to show that your functions work

5) An adjusted Makefile to compile the correct code

Please upload your ZIP here.

Thanks!

Linux

Nº del proyecto: #33323147

Sobre el proyecto

3 propuestas Proyecto remoto Activo hace 2 años

3 freelancers están ofertando un promedio de $23 por este trabajo

rhlmeena35

Hi, i understood your project details very well and i can finish the same in your timeline. come over chat to discuss further.

$30 USD en 1 día
(32 comentarios)
4.8