6 #define MODE03H_WIDTH 80 7 #define MODE03H_HEIGHT 25 145 int8_t
mode03h_draw_line(uint8_t color, uint16_t ax, uint16_t ay, uint16_t bx, uint16_t by);
int8_t __mode03h_print_char_buffer(uint16_t *buffer, uint16_t mode, uint16_t *x, uint16_t *y, char character)
Helper function to print character on screen for mode 03h on given buffer.
Definition: mode_03h.c:945
int8_t mode03h_get_color(uint16_t x, uint16_t y, uint8_t *color)
Get character color from given point on screen for mode 03h.
Definition: mode_03h.c:518
int8_t mode03h_draw_line(uint8_t color, uint16_t ax, uint16_t ay, uint16_t bx, uint16_t by)
Definition: mode_03h.c:586
int8_t mode03h_turn_cursor_off()
Turn off cursor for mode 03h.
Definition: mode_03h.c:564
uint16_t __mode03h_calcualte_position(uint16_t x, uint16_t y)
Calculate position.
Definition: mode_03h.c:1090
int8_t mode03h_get_char_and_color_buffered(uint16_t x, uint16_t y, char *character, uint8_t *color)
Get character and character color color from given point on screen for mode 03h to internal buffer...
Definition: mode_03h.c:720
int8_t mode03h_draw_circle_external_buffer(uint8_t *buffer, uint16_t mode, uint8_t color, uint16_t x, uint16_t y, uint16_t radius)
Definition: mode_03h.c:907
int8_t mode03h_print_char_buffered(char character)
Print character on screen for mode 03h to internal buffer.
Definition: mode_03h.c:631
int8_t mode03h_swap_buffers()
Definition: mode_03h.c:466
int8_t __mode03h_print_string_buffer(uint16_t *buffer, uint16_t mode, uint16_t *x, uint16_t *y, const char *string)
Helper function to print string on screen for mode 03h on given buffer.
Definition: mode_03h.c:987
int8_t mode03h_print_string(const char *string)
Print string on screen for mode 03h.
Definition: mode_03h.c:487
int8_t mode03h_turn_cursor_on()
Turn on cursor for mode 03h.
Definition: mode_03h.c:558
int8_t mode03h_print_char_external_buffer(uint8_t *buffer, uint16_t mode, uint16_t *x, uint16_t *y, char character)
Print character on screen for mode 03h to external buffer.
Definition: mode_03h.c:819
int8_t mode03h_print_char_color(char character, uint8_t color)
Print character on screen for mode 03h.
Definition: mode_03h.c:480
int8_t mode03h_print_string_color_external_buffer(uint8_t *buffer, uint16_t mode, uint16_t *x, uint16_t *y, const char *string, uint8_t color)
Print string on screen for mode 03h to external buffer.
Definition: mode_03h.c:834
int8_t mode03h_draw_circle_buffered(uint8_t color, uint16_t x, uint16_t y, uint16_t radius)
Definition: mode_03h.c:793
int8_t mode03h_turn_off_buffer()
Definition: mode_03h.c:429
int8_t mode03h_draw_rectangle_buffered(uint8_t color, uint16_t ax, uint16_t ay, uint16_t bx, uint16_t by)
Definition: mode_03h.c:797
int8_t mode03h_draw_rectangle_external_buffer(uint8_t *buffer, uint16_t mode, uint8_t color, uint16_t ax, uint16_t ay, uint16_t bx, uint16_t by)
Definition: mode_03h.c:910
int8_t __mode03h_set_color_buffer(uint16_t *buffer, uint16_t mode, uint16_t x, uint16_t y, uint8_t color)
Helper function to set character color on given point on screen for mode 03h on given buffer...
Definition: mode_03h.c:1025
int8_t mode03h_get_char_and_color(uint16_t x, uint16_t y, char *character, uint8_t *color)
Get character and character color color from given point on screen for mode 03h.
Definition: mode_03h.c:534
int8_t __mode03h_get_color_buffer(uint16_t *buffer, uint16_t mode, uint16_t x, uint16_t y, uint8_t *color)
Helper function to get character color from given point on screen for mode 03h on given buffer...
Definition: mode_03h.c:1033
int8_t mode03h_set_char_buffered(uint16_t x, uint16_t y, char character)
Set character on given point on screen for mode 03h to internal buffer.
Definition: mode_03h.c:670
int8_t mode03h_clear_screen_external_buffer(uint8_t *buffer, uint16_t mode, uint16_t *x, uint16_t *y)
Definition: mode_03h.c:913
int8_t mode03h_print_char(char character)
Print character on screen for mode 03h.
Definition: mode_03h.c:474
int8_t mode03h_get_char_and_color_external_buffer(uint8_t *buffer, uint16_t mode, uint16_t x, uint16_t y, char *character, uint8_t *color)
Get character and character color color from given point on screen for mode 03h to external buffer...
Definition: mode_03h.c:864
int8_t mode03h_set_char_and_color_external_buffer(uint8_t *buffer, uint16_t mode, uint16_t x, uint16_t y, char character, uint8_t color)
Set character and character color on given point on screen for mode 03h to external buffer...
Definition: mode_03h.c:859
int8_t mode03h_draw_pixel(uint8_t color, uint16_t x, uint16_t y)
Definition: mode_03h.c:570
int8_t mode03h_get_char(uint16_t x, uint16_t y, char *character)
Get character from given point on screen for mode 03h.
Definition: mode_03h.c:506
int8_t __mode03h_print_string_color_buffer(uint16_t *buffer, uint16_t mode, uint16_t *x, uint16_t *y, const char *string, uint8_t color)
Helper function to print string on screen for mode 03h on given buffer.
Definition: mode_03h.c:998
int8_t mode03h_draw_rectangle(uint8_t color, uint16_t ax, uint16_t ay, uint16_t bx, uint16_t by)
Definition: mode_03h.c:621
int8_t mode03h_set_color(uint16_t x, uint16_t y, uint8_t color)
Set character color on given point on screen for mode 03h.
Definition: mode_03h.c:512
int8_t __mode03h_get_char_buffer(uint16_t *buffer, uint16_t mode, uint16_t x, uint16_t y, char *character)
Helper function to get character from given point on screen for mode 03h on given buffer...
Definition: mode_03h.c:1017
int8_t __mode03h_set_char_and_color_buffer(uint16_t *buffer, uint16_t mode, uint16_t x, uint16_t y, char character, uint8_t color)
Helper function to set character and character color on given point on screen for mode 03h on given b...
Definition: mode_03h.c:1041
int8_t mode03h_get_cursor_pos(uint16_t *x, uint16_t *y)
Get cursor position for mode 03h.
Definition: mode_03h.c:549
int8_t mode03h_print_string_buffered(const char *string)
Print string on screen for mode 03h to internal buffer.
Definition: mode_03h.c:651
int8_t mode03h_print_string_color_buffered(const char *string, uint8_t color)
Print string on screen for mode 03h to internal buffer.
Definition: mode_03h.c:661
int8_t mode03h_draw_line_external_buffer(uint8_t *buffer, uint16_t mode, uint8_t color, uint16_t ax, uint16_t ay, uint16_t bx, uint16_t by)
Definition: mode_03h.c:878
int8_t mode03h_set_color_external_buffer(uint8_t *buffer, uint16_t mode, uint16_t x, uint16_t y, uint8_t color)
Set character color on given point on screen for mode 03h to external buffer.
Definition: mode_03h.c:849
int8_t mode03h_get_color_buffered(uint16_t x, uint16_t y, uint8_t *color)
Get character color from given point on screen for mode 03h to internal buffer.
Definition: mode_03h.c:700
int8_t mode03h_set_color_buffered(uint16_t x, uint16_t y, uint8_t color)
Set character color on given point on screen for mode 03h to internal buffer.
Definition: mode_03h.c:690
int8_t mode03h_turn_on_buffer()
Definition: mode_03h.c:402
int8_t mode03h_get_cursor_pos_buffered(uint16_t *x, uint16_t *y)
Get cursor position for mode 03h to internal buffer.
Definition: mode_03h.c:741
int8_t mode03h_set_cursor_pos_buffered(uint16_t x, uint16_t y)
Set cursor position for mode 03h to internal buffer.
Definition: mode_03h.c:730
int8_t mode03h_get_char_buffered(uint16_t x, uint16_t y, char *character)
Get character from given point on screen for mode 03h to internal buffer.
Definition: mode_03h.c:680
int8_t mode03h_set_char_and_color_buffered(uint16_t x, uint16_t y, char character, uint8_t color)
Set character and character color on given point on screen for mode 03h to internal buffer...
Definition: mode_03h.c:710
int8_t mode03h_set_char_external_buffer(uint8_t *buffer, uint16_t mode, uint16_t x, uint16_t y, char character)
Set character on given point on screen for mode 03h to external buffer.
Definition: mode_03h.c:839
int8_t mode03h_print_char_color_external_buffer(uint8_t *buffer, uint16_t mode, uint16_t *x, uint16_t *y, char character, uint8_t color)
Print character on screen for mode 03h to external buffer.
Definition: mode_03h.c:824
int8_t mode03h_clear_screen()
Definition: mode_03h.c:625
int8_t mode03h_set_cursor_pos(uint16_t x, uint16_t y)
Set cursor position for mode 03h.
Definition: mode_03h.c:543
void __mode03h_newline(uint16_t *buffer, uint16_t *x, uint16_t *y)
Print new line.
Definition: mode_03h.c:1059
int8_t mode03h_print_string_external_buffer(uint8_t *buffer, uint16_t mode, uint16_t *x, uint16_t *y, const char *string)
Print string on screen for mode 03h to external buffer.
Definition: mode_03h.c:829
int8_t mode03h_draw_pixel_buffered(uint8_t color, uint16_t x, uint16_t y)
Definition: mode_03h.c:752
int8_t mode03h_get_char_external_buffer(uint8_t *buffer, uint16_t mode, uint16_t x, uint16_t y, char *character)
Get character from given point on screen for mode 03h to external buffer.
Definition: mode_03h.c:844
char buffer[500]
Definition: physical_memory_manager.c:5
int8_t mode03h_set_mode()
Definition: mode_03h.c:346
int8_t mode03h_draw_circle(uint8_t color, uint16_t x, uint16_t y, uint16_t radius)
Definition: mode_03h.c:616
int8_t mode03h_get_color_external_buffer(uint8_t *buffer, uint16_t mode, uint16_t x, uint16_t y, uint8_t *color)
Get character color from given point on screen for mode 03h to external buffer.
Definition: mode_03h.c:854
uint8_t * mode03h_create_external_buffer(uint16_t mode)
Definition: mode_03h.c:936
int8_t mode03h_swap_external_buffer(uint8_t *buffer, uint16_t mode)
Definition: mode_03h.c:932
int8_t __mode03h_print_char_color_buffer(uint16_t *buffer, uint16_t mode, uint16_t *x, uint16_t *y, char character, uint8_t color)
Helper function to print character on screen for mode 03h on given buffer.
Definition: mode_03h.c:966
int8_t mode03h_draw_line_buffered(uint8_t color, uint16_t ax, uint16_t ay, uint16_t bx, uint16_t by)
Definition: mode_03h.c:763
int8_t __mode03h_set_char_buffer(uint16_t *buffer, uint16_t mode, uint16_t x, uint16_t y, char character)
Helper function to s character on given point on screen for mode 03h on given buffer.
Definition: mode_03h.c:1009
int8_t mode03h_print_char_color_buffered(char character, uint8_t color)
Print character on screen for mode 03h to internal buffer.
Definition: mode_03h.c:641
int8_t mode03h_print_string_color(const char *string, uint8_t color)
Print string on screen for mode 03h.
Definition: mode_03h.c:493
static char mode
Definition: vga_gmode.c:20
int8_t mode03h_set_char(uint16_t x, uint16_t y, char character)
Set character on given point on screen for mode 03h.
Definition: mode_03h.c:500
int8_t mode03h_draw_pixel_external_buffer(uint8_t *buffer, uint16_t mode, int8_t color, uint16_t x, uint16_t y)
Definition: mode_03h.c:869
uint8_t mode03h_is_buffer_on()
Definition: mode_03h.c:454
int8_t mode03h_set_char_and_color(uint16_t x, uint16_t y, char character, uint8_t color)
Set character and character color on given point on screen for mode 03h.
Definition: mode_03h.c:525
int8_t mode03h_clear_screen_buffered()
Definition: mode_03h.c:801
int8_t __mode03h_get_char_and_color_buffer(uint16_t *buffer, uint16_t mode, uint16_t x, uint16_t y, char *character, uint8_t *color)
Helper function to get character and character color color from given point on screen for mode 03h on...
Definition: mode_03h.c:1050