6 #define MODE01H_WIDTH 40 7 #define MODE01H_HEIGHT 25 147 int8_t
mode01h_draw_line(uint8_t color, uint16_t ax, uint16_t ay, uint16_t bx, uint16_t by);
int8_t mode01h_print_char_buffered(char character)
Print character on screen for mode 01h to internal buffer.
Definition: mode_01h.c:624
uint8_t mode01h_is_buffer_on()
Definition: mode_01h.c:450
int8_t mode01h_print_char(char character)
Print character on screen for mode 01h.
Definition: mode_01h.c:470
int8_t mode01h_draw_circle_external_buffer(uint8_t *buffer, uint16_t mode, uint8_t color, uint16_t x, uint16_t y, uint16_t radius)
Definition: mode_01h.c:899
int8_t __mode01h_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 01h on given buffer.
Definition: mode_01h.c:999
int8_t mode01h_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 01h to internal buffer...
Definition: mode_01h.c:713
int8_t mode01h_clear_screen_buffered()
Definition: mode_01h.c:793
uint8_t * mode01h_create_external_buffer(uint16_t mode)
Definition: mode_01h.c:928
int8_t mode01h_print_string_color(const char *string, uint8_t color)
Print string on screen for mode 01h.
Definition: mode_01h.c:489
int8_t mode01h_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 01h to external buffer.
Definition: mode_01h.c:846
int8_t __mode01h_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 01h on given buffer.
Definition: mode_01h.c:956
int8_t mode01h_set_mode()
Definition: mode_01h.c:346
int8_t mode01h_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 01h to external buffer...
Definition: mode_01h.c:851
int8_t mode01h_get_char_buffered(uint16_t x, uint16_t y, char *character)
Get character from given point on screen for mode 01h to internal buffer.
Definition: mode_01h.c:673
int8_t __mode01h_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 01h on given buffer...
Definition: mode_01h.c:1023
int8_t __mode01h_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 01h on given buffer...
Definition: mode_01h.c:1015
int8_t mode01h_set_cursor_pos(uint16_t x, uint16_t y)
Set cursor position for mode 01h.
Definition: mode_01h.c:539
int8_t mode01h_print_string_color_buffered(const char *string, uint8_t color)
Print string on screen for mode 01h to internal buffer.
Definition: mode_01h.c:654
int8_t __mode01h_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 01h on...
Definition: mode_01h.c:1040
int8_t __mode01h_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 01h on given b...
Definition: mode_01h.c:1031
int8_t mode01h_get_cursor_pos(uint16_t *x, uint16_t *y)
Get cursor position for mode 01h.
Definition: mode_01h.c:545
int8_t mode01h_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 01h to internal buffer...
Definition: mode_01h.c:703
int8_t mode01h_get_color_buffered(uint16_t x, uint16_t y, uint8_t *color)
Get character color from given point on screen for mode 01h to internal buffer.
Definition: mode_01h.c:693
int8_t mode01h_draw_line(uint8_t color, uint16_t ax, uint16_t ay, uint16_t bx, uint16_t by)
Definition: mode_01h.c:581
int8_t mode01h_clear_screen()
Definition: mode_01h.c:618
int8_t mode01h_print_char_external_buffer(uint8_t *buffer, uint16_t mode, uint16_t *x, uint16_t *y, char character)
Print character on screen for mode 01h to external buffer.
Definition: mode_01h.c:811
int8_t mode01h_draw_circle_buffered(uint8_t color, uint16_t x, uint16_t y, uint16_t radius)
Definition: mode_01h.c:785
int8_t mode01h_draw_rectangle_buffered(uint8_t color, uint16_t ax, uint16_t ay, uint16_t bx, uint16_t by)
Definition: mode_01h.c:789
int8_t mode01h_clear_screen_external_buffer(uint8_t *buffer, uint16_t mode, uint16_t *x, uint16_t *y)
Definition: mode_01h.c:905
int8_t __mode01h_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 01h on given buffer.
Definition: mode_01h.c:977
int8_t mode01h_set_char_buffered(uint16_t x, uint16_t y, char character)
Set character on given point on screen for mode 01h to internal buffer.
Definition: mode_01h.c:663
int8_t mode01h_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 01h to external buffer.
Definition: mode_01h.c:831
int8_t __mode01h_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 01h on given buffer.
Definition: mode_01h.c:935
int8_t mode01h_print_string(const char *string)
Print string on screen for mode 01h.
Definition: mode_01h.c:483
uint16_t __mode01h_calcualte_position(uint16_t x, uint16_t y)
Calculate position.
Definition: mode_01h.c:1080
int8_t mode01h_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_01h.c:870
int8_t mode01h_set_char(uint16_t x, uint16_t y, char character)
Set character on given point on screen for mode 01h.
Definition: mode_01h.c:496
int8_t mode01h_get_char(uint16_t x, uint16_t y, char *character)
Get character from given point on screen for mode 01h.
Definition: mode_01h.c:502
int8_t mode01h_print_string_buffered(const char *string)
Print string on screen for mode 01h to internal buffer.
Definition: mode_01h.c:644
int8_t mode01h_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 01h to external buffer.
Definition: mode_01h.c:816
int8_t mode01h_draw_line_buffered(uint8_t color, uint16_t ax, uint16_t ay, uint16_t bx, uint16_t by)
Definition: mode_01h.c:755
int8_t mode01h_swap_buffers()
Definition: mode_01h.c:462
int8_t mode01h_set_color_buffered(uint16_t x, uint16_t y, uint8_t color)
Set character color on given point on screen for mode 01h to internal buffer.
Definition: mode_01h.c:683
int8_t mode01h_print_char_color_buffered(char character, uint8_t color)
Print character on screen for mode 01h to internal buffer.
Definition: mode_01h.c:634
int8_t mode01h_swap_external_buffer(uint8_t *buffer, uint16_t mode)
Definition: mode_01h.c:924
int8_t mode01h_get_color(uint16_t x, uint16_t y, uint8_t *color)
Get character color from given point on screen for mode 01h.
Definition: mode_01h.c:514
char buffer[500]
Definition: physical_memory_manager.c:5
int8_t mode01h_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 01h to external buffer.
Definition: mode_01h.c:821
int8_t mode01h_get_cursor_pos_buffered(uint16_t *x, uint16_t *y)
Get cursor position for mode 01h to internal buffer.
Definition: mode_01h.c:734
int8_t __mode01h_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 01h on given buffer.
Definition: mode_01h.c:988
int8_t mode01h_turn_cursor_on()
Turn on cursor for mode 01h.
Definition: mode_01h.c:554
void __mode01h_newline(uint16_t *buffer, uint16_t *x, uint16_t *y)
Print new line.
Definition: mode_01h.c:1049
int8_t mode01h_draw_pixel(uint8_t color, uint16_t x, uint16_t y)
Definition: mode_01h.c:566
int8_t mode01h_set_cursor_pos_buffered(uint16_t x, uint16_t y)
Set cursor position for mode 01h to internal buffer.
Definition: mode_01h.c:723
int8_t mode01h_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 01h to external buffer...
Definition: mode_01h.c:856
int8_t mode01h_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_01h.c:902
int8_t mode01h_print_char_color(char character, uint8_t color)
Print character on screen for mode 01h.
Definition: mode_01h.c:476
int8_t mode01h_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 01h to external buffer.
Definition: mode_01h.c:841
int8_t mode01h_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 01h to external buffer.
Definition: mode_01h.c:826
int8_t mode01h_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 01h.
Definition: mode_01h.c:521
int8_t mode01h_draw_rectangle(uint8_t color, uint16_t ax, uint16_t ay, uint16_t bx, uint16_t by)
Definition: mode_01h.c:614
int8_t mode01h_set_color(uint16_t x, uint16_t y, uint8_t color)
Set character color on given point on screen for mode 01h.
Definition: mode_01h.c:508
int8_t __mode01h_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 01h on given buffer...
Definition: mode_01h.c:1007
int8_t mode01h_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 01h to external buffer.
Definition: mode_01h.c:836
int8_t mode01h_turn_cursor_off()
Turn off cursor for mode 01h.
Definition: mode_01h.c:560
static char mode
Definition: vga_gmode.c:20
int8_t mode01h_turn_on_buffer()
Definition: mode_01h.c:402
int8_t mode01h_draw_circle(uint8_t color, uint16_t x, uint16_t y, uint16_t radius)
Definition: mode_01h.c:610
int8_t mode01h_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 01h.
Definition: mode_01h.c:530
int8_t mode01h_draw_pixel_buffered(uint8_t color, uint16_t x, uint16_t y)
Definition: mode_01h.c:745
int8_t mode01h_draw_pixel_external_buffer(uint8_t *buffer, uint16_t mode, int8_t color, uint16_t x, uint16_t y)
Definition: mode_01h.c:861
int8_t mode01h_turn_off_buffer()
Definition: mode_01h.c:426