6 #define MODE00H_WIDTH 40 7 #define MODE00H_HEIGHT 25 147 int8_t
mode00h_draw_line(uint8_t color, uint16_t ax, uint16_t ay, uint16_t bx, uint16_t by);
int8_t mode00h_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 00h to internal buffer...
Definition: mode_00h.c:703
int8_t mode00h_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_00h.c:871
int8_t mode00h_print_char(char character)
Print character on screen for mode 00h.
Definition: mode_00h.c:471
int8_t mode00h_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 00h to external buffer.
Definition: mode_00h.c:836
int8_t mode00h_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 00h to external buffer.
Definition: mode_00h.c:846
int8_t mode00h_turn_on_buffer()
Definition: mode_00h.c:403
int8_t mode00h_draw_pixel(uint8_t color, uint16_t x, uint16_t y)
Definition: mode_00h.c:567
int8_t mode00h_print_string_color_buffered(const char *string, uint8_t color)
Print string on screen for mode 00h to internal buffer.
Definition: mode_00h.c:654
int8_t mode00h_set_color_buffered(uint16_t x, uint16_t y, uint8_t color)
Set character color on given point on screen for mode 00h to internal buffer.
Definition: mode_00h.c:683
uint8_t * mode00h_create_external_buffer(uint16_t mode)
Definition: mode_00h.c:929
int8_t __mode00h_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 00h on given buffer.
Definition: mode_00h.c:957
int8_t mode00h_get_cursor_pos(uint16_t *x, uint16_t *y)
Get cursor position for mode 00h.
Definition: mode_00h.c:546
int8_t __mode00h_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 00h on given buffer.
Definition: mode_00h.c:1000
int8_t mode00h_draw_line_buffered(uint8_t color, uint16_t ax, uint16_t ay, uint16_t bx, uint16_t by)
Definition: mode_00h.c:755
int8_t __mode00h_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 00h on given buffer...
Definition: mode_00h.c:1016
int8_t mode00h_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 00h to external buffer.
Definition: mode_00h.c:841
int8_t mode00h_get_char_buffered(uint16_t x, uint16_t y, char *character)
Get character from given point on screen for mode 00h to internal buffer.
Definition: mode_00h.c:673
int8_t mode00h_set_mode()
Definition: mode_00h.c:346
int8_t __mode00h_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 00h on given buffer...
Definition: mode_00h.c:1024
int8_t mode00h_draw_pixel_external_buffer(uint8_t *buffer, uint16_t mode, int8_t color, uint16_t x, uint16_t y)
Definition: mode_00h.c:861
int8_t mode00h_draw_pixel_buffered(uint8_t color, uint16_t x, uint16_t y)
Definition: mode_00h.c:745
int8_t mode00h_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 00h to external buffer.
Definition: mode_00h.c:816
int8_t mode00h_set_char_buffered(uint16_t x, uint16_t y, char character)
Set character on given point on screen for mode 00h to internal buffer.
Definition: mode_00h.c:663
int8_t mode00h_set_color(uint16_t x, uint16_t y, uint8_t color)
Set character color on given point on screen for mode 00h.
Definition: mode_00h.c:509
int8_t __mode00h_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 00h on given b...
Definition: mode_00h.c:1032
int8_t mode00h_print_char_buffered(char character)
Print character on screen for mode 00h to internal buffer.
Definition: mode_00h.c:624
int8_t mode00h_draw_circle_external_buffer(uint8_t *buffer, uint16_t mode, uint8_t color, uint16_t x, uint16_t y, uint16_t radius)
Definition: mode_00h.c:900
int8_t mode00h_print_char_color_buffered(char character, uint8_t color)
Print character on screen for mode 00h to internal buffer.
Definition: mode_00h.c:634
void __mode00h_newline(uint16_t *buffer, uint16_t *x, uint16_t *y)
Print new line.
Definition: mode_00h.c:1050
int8_t mode00h_turn_off_buffer()
Definition: mode_00h.c:427
int8_t mode00h_turn_cursor_off()
Turn off cursor for mode 00h.
Definition: mode_00h.c:561
int8_t mode00h_turn_cursor_on()
Turn on cursor for mode 00h.
Definition: mode_00h.c:555
int8_t mode00h_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 00h to external buffer.
Definition: mode_00h.c:821
int8_t mode00h_draw_rectangle_buffered(uint8_t color, uint16_t ax, uint16_t ay, uint16_t bx, uint16_t by)
Definition: mode_00h.c:789
int8_t mode00h_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 00h to internal buffer...
Definition: mode_00h.c:713
int8_t __mode00h_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 00h on given buffer.
Definition: mode_00h.c:989
int8_t mode00h_print_char_color(char character, uint8_t color)
Print character on screen for mode 00h.
Definition: mode_00h.c:477
int8_t mode00h_draw_rectangle(uint8_t color, uint16_t ax, uint16_t ay, uint16_t bx, uint16_t by)
Definition: mode_00h.c:615
int8_t __mode00h_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 00h on given buffer.
Definition: mode_00h.c:936
int8_t mode00h_set_cursor_pos_buffered(uint16_t x, uint16_t y)
Set cursor position for mode 00h to internal buffer.
Definition: mode_00h.c:723
int8_t mode00h_print_string(const char *string)
Print string on screen for mode 00h.
Definition: mode_00h.c:484
int8_t mode00h_swap_buffers()
Definition: mode_00h.c:463
int8_t mode00h_set_cursor_pos(uint16_t x, uint16_t y)
Set cursor position for mode 00h.
Definition: mode_00h.c:540
int8_t mode00h_clear_screen_buffered()
Definition: mode_00h.c:793
int8_t mode00h_draw_circle_buffered(uint8_t color, uint16_t x, uint16_t y, uint16_t radius)
Definition: mode_00h.c:785
int8_t mode00h_draw_line(uint8_t color, uint16_t ax, uint16_t ay, uint16_t bx, uint16_t by)
Definition: mode_00h.c:582
uint8_t mode00h_is_buffer_on()
Definition: mode_00h.c:451
int8_t mode00h_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 00h to external buffer.
Definition: mode_00h.c:831
int8_t mode00h_get_color(uint16_t x, uint16_t y, uint8_t *color)
Get character color from given point on screen for mode 00h.
Definition: mode_00h.c:515
int8_t mode00h_draw_circle(uint8_t color, uint16_t x, uint16_t y, uint16_t radius)
Definition: mode_00h.c:611
int8_t mode00h_clear_screen()
Definition: mode_00h.c:619
int8_t mode00h_swap_external_buffer(uint8_t *buffer, uint16_t mode)
Definition: mode_00h.c:925
int8_t mode00h_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_00h.c:903
int8_t mode00h_print_char_external_buffer(uint8_t *buffer, uint16_t mode, uint16_t *x, uint16_t *y, char character)
Print character on screen for mode 00h to external buffer.
Definition: mode_00h.c:811
int8_t mode00h_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 00h to external buffer...
Definition: mode_00h.c:856
int8_t __mode00h_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 00h on given buffer...
Definition: mode_00h.c:1008
int8_t mode00h_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 00h.
Definition: mode_00h.c:531
int8_t mode00h_print_string_color(const char *string, uint8_t color)
Print string on screen for mode 00h.
Definition: mode_00h.c:490
int8_t mode00h_get_char(uint16_t x, uint16_t y, char *character)
Get character from given point on screen for mode 00h.
Definition: mode_00h.c:503
char buffer[500]
Definition: physical_memory_manager.c:5
uint16_t __mode00h_calcualte_position(uint16_t x, uint16_t y)
Calculate position.
Definition: mode_00h.c:1081
int8_t mode00h_clear_screen_external_buffer(uint8_t *buffer, uint16_t mode, uint16_t *x, uint16_t *y)
Definition: mode_00h.c:906
int8_t mode00h_get_cursor_pos_buffered(uint16_t *x, uint16_t *y)
Get cursor position for mode 00h to internal buffer.
Definition: mode_00h.c:734
int8_t mode00h_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 00h to external buffer.
Definition: mode_00h.c:826
int8_t __mode00h_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 00h on given buffer.
Definition: mode_00h.c:978
int8_t mode00h_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 00h.
Definition: mode_00h.c:522
int8_t mode00h_set_char(uint16_t x, uint16_t y, char character)
Set character on given point on screen for mode 00h.
Definition: mode_00h.c:497
int8_t __mode00h_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 00h on...
Definition: mode_00h.c:1041
int8_t mode00h_print_string_buffered(const char *string)
Print string on screen for mode 00h to internal buffer.
Definition: mode_00h.c:644
static char mode
Definition: vga_gmode.c:20
int8_t mode00h_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 00h to external buffer...
Definition: mode_00h.c:851
int8_t mode00h_get_color_buffered(uint16_t x, uint16_t y, uint8_t *color)
Get character color from given point on screen for mode 00h to internal buffer.
Definition: mode_00h.c:693