6 #define MODE07H_WIDTH 80 7 #define MODE07H_HEIGHT 25 147 int8_t
mode07h_draw_line(uint8_t color, uint16_t ax, uint16_t ay, uint16_t bx, uint16_t by);
int8_t mode07h_set_mode()
Definition: mode_07h.c:346
int8_t mode07h_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 07h to external buffer.
Definition: mode_07h.c:827
uint8_t mode07h_is_buffer_on()
Definition: mode_07h.c:451
int8_t __mode07h_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 07h on given buffer...
Definition: mode_07h.c:1008
int8_t mode07h_set_color_buffered(uint16_t x, uint16_t y, uint8_t color)
Set character color on given point on screen for mode 07h to internal buffer.
Definition: mode_07h.c:684
int8_t mode07h_set_cursor_pos(uint16_t x, uint16_t y)
Set cursor position for mode 07h.
Definition: mode_07h.c:540
int8_t mode07h_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 07h to external buffer.
Definition: mode_07h.c:817
uint8_t * mode07h_create_external_buffer(uint16_t mode)
Definition: mode_07h.c:929
int8_t mode07h_print_char_color_buffered(char character, uint8_t color)
Print character on screen for mode 07h to internal buffer.
Definition: mode_07h.c:635
int8_t mode07h_set_color(uint16_t x, uint16_t y, uint8_t color)
Set character color on given point on screen for mode 07h.
Definition: mode_07h.c:509
int8_t mode07h_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 07h to internal buffer...
Definition: mode_07h.c:714
void __mode07h_newline(uint16_t *buffer, uint16_t *x, uint16_t *y)
Print new line.
Definition: mode_07h.c:1050
int8_t mode07h_print_char(char character)
Print character on screen for mode 07h.
Definition: mode_07h.c:471
int8_t mode07h_draw_pixel(uint8_t color, uint16_t x, uint16_t y)
Definition: mode_07h.c:567
int8_t mode07h_print_char_buffered(char character)
Print character on screen for mode 07h to internal buffer.
Definition: mode_07h.c:625
int8_t mode07h_print_char_color(char character, uint8_t color)
Print character on screen for mode 07h.
Definition: mode_07h.c:477
int8_t mode07h_turn_on_buffer()
Definition: mode_07h.c:403
int8_t mode07h_turn_off_buffer()
Definition: mode_07h.c:427
int8_t mode07h_draw_circle(uint8_t color, uint16_t x, uint16_t y, uint16_t radius)
Definition: mode_07h.c:611
int8_t mode07h_turn_cursor_on()
Turn on cursor for mode 07h.
Definition: mode_07h.c:555
int8_t __mode07h_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 07h on given buffer.
Definition: mode_07h.c:989
int8_t __mode07h_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 07h on given buffer.
Definition: mode_07h.c:957
int8_t mode07h_draw_circle_external_buffer(uint8_t *buffer, uint16_t mode, uint8_t color, uint16_t x, uint16_t y, uint16_t radius)
Definition: mode_07h.c:900
int8_t mode07h_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 07h to external buffer.
Definition: mode_07h.c:832
int8_t mode07h_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 07h to external buffer...
Definition: mode_07h.c:852
int8_t mode07h_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 07h to external buffer.
Definition: mode_07h.c:842
int8_t mode07h_get_cursor_pos(uint16_t *x, uint16_t *y)
Get cursor position for mode 07h.
Definition: mode_07h.c:546
int8_t mode07h_set_char_buffered(uint16_t x, uint16_t y, char character)
Set character on given point on screen for mode 07h to internal buffer.
Definition: mode_07h.c:664
int8_t mode07h_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 07h to external buffer.
Definition: mode_07h.c:847
int8_t __mode07h_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 07h on given buffer...
Definition: mode_07h.c:1024
int8_t mode07h_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 07h to external buffer...
Definition: mode_07h.c:857
int8_t mode07h_print_string(const char *string)
Print string on screen for mode 07h.
Definition: mode_07h.c:484
int8_t __mode07h_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 07h on...
Definition: mode_07h.c:1041
int8_t mode07h_get_color_buffered(uint16_t x, uint16_t y, uint8_t *color)
Get character color from given point on screen for mode 07h to internal buffer.
Definition: mode_07h.c:694
int8_t mode07h_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_07h.c:903
int8_t mode07h_draw_pixel_external_buffer(uint8_t *buffer, uint16_t mode, int8_t color, uint16_t x, uint16_t y)
Definition: mode_07h.c:862
int8_t mode07h_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 07h.
Definition: mode_07h.c:531
int8_t mode07h_draw_line_buffered(uint8_t color, uint16_t ax, uint16_t ay, uint16_t bx, uint16_t by)
Definition: mode_07h.c:756
int8_t mode07h_draw_line(uint8_t color, uint16_t ax, uint16_t ay, uint16_t bx, uint16_t by)
Definition: mode_07h.c:582
int8_t mode07h_get_char_buffered(uint16_t x, uint16_t y, char *character)
Get character from given point on screen for mode 07h to internal buffer.
Definition: mode_07h.c:674
int8_t mode07h_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 07h to internal buffer...
Definition: mode_07h.c:704
int8_t mode07h_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 07h to external buffer.
Definition: mode_07h.c:837
int8_t mode07h_get_cursor_pos_buffered(uint16_t *x, uint16_t *y)
Get cursor position for mode 07h to internal buffer.
Definition: mode_07h.c:735
int8_t __mode07h_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 07h on given buffer.
Definition: mode_07h.c:1000
int8_t __mode07h_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 07h on given buffer...
Definition: mode_07h.c:1016
int8_t mode07h_print_string_buffered(const char *string)
Print string on screen for mode 07h to internal buffer.
Definition: mode_07h.c:645
int8_t mode07h_set_char(uint16_t x, uint16_t y, char character)
Set character on given point on screen for mode 07h.
Definition: mode_07h.c:497
int8_t mode07h_clear_screen_external_buffer(uint8_t *buffer, uint16_t mode, uint16_t *x, uint16_t *y)
Definition: mode_07h.c:906
int8_t mode07h_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 07h to external buffer.
Definition: mode_07h.c:822
int8_t mode07h_draw_pixel_buffered(uint8_t color, uint16_t x, uint16_t y)
Definition: mode_07h.c:746
int8_t mode07h_turn_cursor_off()
Turn off cursor for mode 07h.
Definition: mode_07h.c:561
int8_t mode07h_get_color(uint16_t x, uint16_t y, uint8_t *color)
Get character color from given point on screen for mode 07h.
Definition: mode_07h.c:515
int8_t mode07h_print_char_external_buffer(uint8_t *buffer, uint16_t mode, uint16_t *x, uint16_t *y, char character)
Print character on screen for mode 07h to external buffer.
Definition: mode_07h.c:812
int8_t mode07h_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 07h.
Definition: mode_07h.c:522
int8_t mode07h_draw_rectangle_buffered(uint8_t color, uint16_t ax, uint16_t ay, uint16_t bx, uint16_t by)
Definition: mode_07h.c:790
int8_t mode07h_print_string_color(const char *string, uint8_t color)
Print string on screen for mode 07h.
Definition: mode_07h.c:490
int8_t mode07h_print_string_color_buffered(const char *string, uint8_t color)
Print string on screen for mode 07h to internal buffer.
Definition: mode_07h.c:655
int8_t mode07h_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_07h.c:871
char buffer[500]
Definition: physical_memory_manager.c:5
int8_t __mode07h_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 07h on given buffer.
Definition: mode_07h.c:978
int8_t mode07h_draw_circle_buffered(uint8_t color, uint16_t x, uint16_t y, uint16_t radius)
Definition: mode_07h.c:786
uint16_t __mode07h_calcualte_position(uint16_t x, uint16_t y)
Calculate position.
Definition: mode_07h.c:1081
int8_t mode07h_swap_buffers()
Definition: mode_07h.c:463
int8_t __mode07h_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 07h on given buffer.
Definition: mode_07h.c:936
int8_t mode07h_clear_screen_buffered()
Definition: mode_07h.c:794
int8_t __mode07h_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 07h on given b...
Definition: mode_07h.c:1032
int8_t mode07h_get_char(uint16_t x, uint16_t y, char *character)
Get character from given point on screen for mode 07h.
Definition: mode_07h.c:503
static char mode
Definition: vga_gmode.c:20
int8_t mode07h_clear_screen()
Definition: mode_07h.c:619
int8_t mode07h_set_cursor_pos_buffered(uint16_t x, uint16_t y)
Set cursor position for mode 07h to internal buffer.
Definition: mode_07h.c:724
int8_t mode07h_draw_rectangle(uint8_t color, uint16_t ax, uint16_t ay, uint16_t bx, uint16_t by)
Definition: mode_07h.c:615
int8_t mode07h_swap_external_buffer(uint8_t *buffer, uint16_t mode)
Definition: mode_07h.c:925