MicrOS
|
#include "mode_02h.h"
#include "drivers/vga/modes/registerfunctions.h"
#include "memory/heap/heap.h"
#include "drivers/dal/videocard/videocard.h"
#include "drivers/vga/vga.h"
Functions | |
int8_t | mode02h_set_mode () |
int8_t | mode02h_turn_on_buffer () |
int8_t | mode02h_turn_off_buffer () |
uint8_t | mode02h_is_buffer_on () |
int8_t | mode02h_swap_buffers () |
int8_t | mode02h_print_char (char character) |
Print character on screen for mode 02h. More... | |
int8_t | mode02h_print_char_color (char character, uint8_t color) |
Print character on screen for mode 02h. More... | |
int8_t | mode02h_print_string (const char *string) |
Print string on screen for mode 02h. More... | |
int8_t | mode02h_print_string_color (const char *string, uint8_t color) |
Print string on screen for mode 02h. More... | |
int8_t | mode02h_set_char (uint16_t x, uint16_t y, char character) |
Set character on given point on screen for mode 02h. More... | |
int8_t | mode02h_get_char (uint16_t x, uint16_t y, char *character) |
Get character from given point on screen for mode 02h. More... | |
int8_t | mode02h_set_color (uint16_t x, uint16_t y, uint8_t color) |
Set character color on given point on screen for mode 02h. More... | |
int8_t | mode02h_get_color (uint16_t x, uint16_t y, uint8_t *color) |
Get character color from given point on screen for mode 02h. More... | |
int8_t | mode02h_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 02h. More... | |
int8_t | mode02h_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 02h. More... | |
int8_t | mode02h_set_cursor_pos (uint16_t x, uint16_t y) |
Set cursor position for mode 02h. More... | |
int8_t | mode02h_get_cursor_pos (uint16_t *x, uint16_t *y) |
Get cursor position for mode 02h. More... | |
int8_t | mode02h_turn_cursor_on () |
Turn on cursor for mode 02h. More... | |
int8_t | mode02h_turn_cursor_off () |
Turn off cursor for mode 02h. More... | |
int8_t | mode02h_draw_pixel (uint8_t color, uint16_t x, uint16_t y) |
int8_t | mode02h_draw_line (uint8_t color, uint16_t ax, uint16_t ay, uint16_t bx, uint16_t by) |
int8_t | mode02h_draw_circle (uint8_t color, uint16_t x, uint16_t y, uint16_t radius) |
int8_t | mode02h_draw_rectangle (uint8_t color, uint16_t ax, uint16_t ay, uint16_t bx, uint16_t by) |
int8_t | mode02h_clear_screen () |
int8_t | mode02h_print_char_buffered (char character) |
Print character on screen for mode 02h to internal buffer. More... | |
int8_t | mode02h_print_char_color_buffered (char character, uint8_t color) |
Print character on screen for mode 02h to internal buffer. More... | |
int8_t | mode02h_print_string_buffered (const char *string) |
Print string on screen for mode 02h to internal buffer. More... | |
int8_t | mode02h_print_string_color_buffered (const char *string, uint8_t color) |
Print string on screen for mode 02h to internal buffer. More... | |
int8_t | mode02h_set_char_buffered (uint16_t x, uint16_t y, char character) |
Set character on given point on screen for mode 02h to internal buffer. More... | |
int8_t | mode02h_get_char_buffered (uint16_t x, uint16_t y, char *character) |
Get character from given point on screen for mode 02h to internal buffer. More... | |
int8_t | mode02h_set_color_buffered (uint16_t x, uint16_t y, uint8_t color) |
Set character color on given point on screen for mode 02h to internal buffer. More... | |
int8_t | mode02h_get_color_buffered (uint16_t x, uint16_t y, uint8_t *color) |
Get character color from given point on screen for mode 02h to internal buffer. More... | |
int8_t | mode02h_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 02h to internal buffer. More... | |
int8_t | mode02h_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 02h to internal buffer. More... | |
int8_t | mode02h_set_cursor_pos_buffered (uint16_t x, uint16_t y) |
Set cursor position for mode 02h to internal buffer. More... | |
int8_t | mode02h_get_cursor_pos_buffered (uint16_t *x, uint16_t *y) |
Get cursor position for mode 02h to internal buffer. More... | |
int8_t | mode02h_draw_pixel_buffered (uint8_t color, uint16_t x, uint16_t y) |
int8_t | mode02h_draw_line_buffered (uint8_t color, uint16_t ax, uint16_t ay, uint16_t bx, uint16_t by) |
int8_t | mode02h_draw_circle_buffered (uint8_t color, uint16_t x, uint16_t y, uint16_t radius) |
int8_t | mode02h_draw_rectangle_buffered (uint8_t color, uint16_t ax, uint16_t ay, uint16_t bx, uint16_t by) |
int8_t | mode02h_clear_screen_buffered () |
int8_t | mode02h_print_char_external_buffer (uint8_t *buffer, uint16_t mode, uint16_t *x, uint16_t *y, char character) |
Print character on screen for mode 02h to external buffer. More... | |
int8_t | mode02h_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 02h to external buffer. More... | |
int8_t | mode02h_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 02h to external buffer. More... | |
int8_t | mode02h_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 02h to external buffer. More... | |
int8_t | mode02h_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 02h to external buffer. More... | |
int8_t | mode02h_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 02h to external buffer. More... | |
int8_t | mode02h_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 02h to external buffer. More... | |
int8_t | mode02h_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 02h to external buffer. More... | |
int8_t | mode02h_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 02h to external buffer. More... | |
int8_t | mode02h_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 02h to external buffer. More... | |
int8_t | mode02h_draw_pixel_external_buffer (uint8_t *buffer, uint16_t mode, int8_t color, uint16_t x, uint16_t y) |
int8_t | mode02h_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) |
int8_t | mode02h_draw_circle_external_buffer (uint8_t *buffer, uint16_t mode, uint8_t color, uint16_t x, uint16_t y, uint16_t radius) |
int8_t | mode02h_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) |
int8_t | mode02h_clear_screen_external_buffer (uint8_t *buffer, uint16_t mode, uint16_t *x, uint16_t *y) |
int8_t | mode02h_swap_external_buffer (uint8_t *buffer, uint16_t mode) |
uint8_t * | mode02h_create_external_buffer (uint16_t mode) |
int8_t | __mode02h_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 02h on given buffer. More... | |
int8_t | __mode02h_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 02h on given buffer. More... | |
int8_t | __mode02h_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 02h on given buffer. More... | |
int8_t | __mode02h_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 02h on given buffer. More... | |
int8_t | __mode02h_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 02h on given buffer. More... | |
int8_t | __mode02h_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 02h on given buffer. More... | |
int8_t | __mode02h_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 02h on given buffer. More... | |
int8_t | __mode02h_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 02h on given buffer. More... | |
int8_t | __mode02h_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 02h on given buffer. More... | |
int8_t | __mode02h_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 02h on given buffer. More... | |
void | __mode02h_newline (uint16_t *buffer, uint16_t *x, uint16_t *y) |
Print new line. More... | |
uint16_t | __mode02h_calcualte_position (uint16_t x, uint16_t y) |
Calculate position. More... | |
Variables | |
uint8_t | g_80x25_text_02h [] |
unsigned char | palette02H [] |
unsigned char | g_8x16_font_02h [4096] |
screen_char * | mode02h_buffer = NULL |
uint16_t | mode02h_buffer_cursor_x = 0 |
uint16_t | mode02h_buffer_cursor_y = 0 |
uint16_t __mode02h_calcualte_position | ( | uint16_t | x, |
uint16_t | y | ||
) |
Calculate position.
Calculate position on screen. Function return value that added to base address will give you position of current character on screen.
x | x coordinate. |
y | y coordinate. |
int8_t __mode02h_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 02h on given buffer.
Get character and character color color on given point on screen. This function works on given buffer.
buffer | Screen buffer. |
mode | Mode (only when writes to external buffer). |
x | x coordinate. |
character | Return haracter. |
color | Return character color. |
int8_t __mode02h_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 02h on given buffer.
Get character on given point on screen. This function works on given buffer.
buffer | Screen buffer. |
mode | Mode (only when writes to external buffer). |
x | x coordinate. |
y | y coordinate. |
character | Return character. |
int8_t __mode02h_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 02h on given buffer.
Get character color on given point on screen. This function works on given buffer.
buffer | Screen buffer. |
mode | Mode (only when writes to external buffer). |
x | x coordinate. |
y | y coordinate. |
color | Return color. |
void __mode02h_newline | ( | uint16_t * | buffer, |
uint16_t * | x, | ||
uint16_t * | y | ||
) |
Print new line.
buffer | Pointer to screen buffer. |
x | Pointer to x coordinate of screen cursor. |
y | Pointer to y coordinate of screen cursor. |
int8_t __mode02h_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 02h on given buffer.
Print character on screen without changing color of character and background. This function works on given buffer.
buffer | Screen buffer. |
mode | Mode (only when writes to external buffer). |
x | X coordinate of screen cursor also returns new position of cursor. |
y | Y coordinate of screen cursor also returns new position of cursor. |
character | Character. |
int8_t __mode02h_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 02h on given buffer.
Print character on screen with given color of character and background. This function works on given buffer.
buffer | Screen buffer. |
mode | Mode (only when writes to external buffer). |
x | X coordinate of screen cursor also returns new position of cursor. |
y | Y coordinate of screen cursor also returns new position of cursor. |
character | Character. |
color | Color. |
int8_t __mode02h_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 02h on given buffer.
Print string on screen without changing color of characters and background. This function works on given buffer.
buffer | Screen buffer. |
mode | Mode (only when writes to external buffer). |
x | X coordinate of screen cursor also returns new position of cursor. |
y | Y coordinate of screen cursor also returns new position of cursor. |
string | String. |
int8_t __mode02h_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 02h on given buffer.
Print string on screen with given color of characters and background. This function works on given buffer.
buffer | Screen buffer. |
mode | Mode (only when writes to external buffer). |
x | X coordinate of screen cursor also returns new position of cursor. |
y | Y coordinate of screen cursor also returns new position of cursor. |
string | String. |
color | Color. |
int8_t __mode02h_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 02h on given buffer.
Set character and character color on given point on screen. This function works on given buffer.
buffer | Screen buffer. |
mode | Mode (only when writes to external buffer). |
x | x coordinate. |
y | y coordinate. |
character | Character. |
color | Character color. |
int8_t __mode02h_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 02h on given buffer.
Set character on given point on screen without changing color of character and background. This function works on given buffer.
buffer | Screen buffer. |
mode | Mode (only when writes to external buffer). |
x | x coordinate. |
y | y coordinate. |
character | Character. |
int8_t __mode02h_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 02h on given buffer.
Set character color on given point on screen without changing letter. This function works on given buffer.
buffer | Screen buffer. |
mode | Mode (only when writes to external buffer). |
x | x coordinate. |
y | y coordinate. |
color | Color. |
int8_t mode02h_clear_screen | ( | ) |
int8_t mode02h_clear_screen_buffered | ( | ) |
int8_t mode02h_clear_screen_external_buffer | ( | uint8_t * | buffer, |
uint16_t | mode, | ||
uint16_t * | x, | ||
uint16_t * | y | ||
) |
uint8_t* mode02h_create_external_buffer | ( | uint16_t | mode | ) |
int8_t mode02h_draw_circle | ( | uint8_t | color, |
uint16_t | x, | ||
uint16_t | y, | ||
uint16_t | radius | ||
) |
int8_t mode02h_draw_circle_buffered | ( | uint8_t | color, |
uint16_t | x, | ||
uint16_t | y, | ||
uint16_t | radius | ||
) |
int8_t mode02h_draw_circle_external_buffer | ( | uint8_t * | buffer, |
uint16_t | mode, | ||
uint8_t | color, | ||
uint16_t | x, | ||
uint16_t | y, | ||
uint16_t | radius | ||
) |
int8_t mode02h_draw_line | ( | uint8_t | color, |
uint16_t | ax, | ||
uint16_t | ay, | ||
uint16_t | bx, | ||
uint16_t | by | ||
) |
int8_t mode02h_draw_line_buffered | ( | uint8_t | color, |
uint16_t | ax, | ||
uint16_t | ay, | ||
uint16_t | bx, | ||
uint16_t | by | ||
) |
int8_t mode02h_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 | ||
) |
int8_t mode02h_draw_pixel | ( | uint8_t | color, |
uint16_t | x, | ||
uint16_t | y | ||
) |
int8_t mode02h_draw_pixel_buffered | ( | uint8_t | color, |
uint16_t | x, | ||
uint16_t | y | ||
) |
int8_t mode02h_draw_pixel_external_buffer | ( | uint8_t * | buffer, |
uint16_t | mode, | ||
int8_t | color, | ||
uint16_t | x, | ||
uint16_t | y | ||
) |
int8_t mode02h_draw_rectangle | ( | uint8_t | color, |
uint16_t | ax, | ||
uint16_t | ay, | ||
uint16_t | bx, | ||
uint16_t | by | ||
) |
int8_t mode02h_draw_rectangle_buffered | ( | uint8_t | color, |
uint16_t | ax, | ||
uint16_t | ay, | ||
uint16_t | bx, | ||
uint16_t | by | ||
) |
int8_t mode02h_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 | ||
) |
int8_t mode02h_get_char | ( | uint16_t | x, |
uint16_t | y, | ||
char * | character | ||
) |
Get character from given point on screen for mode 02h.
Get character on given point on screen.
x | x coordinate. |
y | y coordinate. |
character | Return character. |
int8_t mode02h_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 02h.
Get character and character color color on given point on screen.
x | x coordinate. |
character | Return haracter. |
color | Return character color. |
int8_t mode02h_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 02h to internal buffer.
Get character and character color color on given point on screen. This function works on internal buffer.
x | x coordinate. |
character | Return haracter. |
color | Return character color. |
int8_t mode02h_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 02h to external buffer.
Get character and character color color on given point on screen. This function works on external buffer.
buffer | Screen buffer. |
mode | Mode. |
x | x coordinate. |
character | Return haracter. |
color | Return character color. |
int8_t mode02h_get_char_buffered | ( | uint16_t | x, |
uint16_t | y, | ||
char * | character | ||
) |
Get character from given point on screen for mode 02h to internal buffer.
Get character on given point on screen. This function works on internal buffer.
x | x coordinate. |
y | y coordinate. |
character | Return character. |
int8_t mode02h_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 02h to external buffer.
Get character on given point on screen. This function works on external buffer.
buffer | Screen buffer. |
mode | Mode. |
x | x coordinate. |
y | y coordinate. |
character | Return character. |
int8_t mode02h_get_color | ( | uint16_t | x, |
uint16_t | y, | ||
uint8_t * | color | ||
) |
Get character color from given point on screen for mode 02h.
Get character color on given point on screen.
x | x coordinate. |
y | y coordinate. |
color | Return color. |
int8_t mode02h_get_color_buffered | ( | uint16_t | x, |
uint16_t | y, | ||
uint8_t * | color | ||
) |
Get character color from given point on screen for mode 02h to internal buffer.
Get character color on given point on screen. This function works on internal buffer.
x | x coordinate. |
y | y coordinate. |
color | Return color. |
int8_t mode02h_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 02h to external buffer.
Get character color on given point on screen. This function works on external buffer.
buffer | Screen buffer. |
mode | Mode. |
x | x coordinate. |
y | y coordinate. |
color | Return color. |
int8_t mode02h_get_cursor_pos | ( | uint16_t * | x, |
uint16_t * | y | ||
) |
Get cursor position for mode 02h.
Get cursor position on screen.
x | Return x coordinate. |
y | Return y coordinate. |
int8_t mode02h_get_cursor_pos_buffered | ( | uint16_t * | x, |
uint16_t * | y | ||
) |
Get cursor position for mode 02h to internal buffer.
Get cursor position on screen. This function works on internal buffer.
x | Return x coordinate. |
y | Return y coordinate. |
uint8_t mode02h_is_buffer_on | ( | ) |
int8_t mode02h_print_char | ( | char | character | ) |
Print character on screen for mode 02h.
Print character on screen without changing color of character and background.
character | Character. |
int8_t mode02h_print_char_buffered | ( | char | character | ) |
Print character on screen for mode 02h to internal buffer.
Print character on screen without changing color of character and background. This function works on internal buffer.
character | Character. |
int8_t mode02h_print_char_color | ( | char | character, |
uint8_t | color | ||
) |
Print character on screen for mode 02h.
Print character on screen with given color of character and background.
character | Character. |
color | Color. |
int8_t mode02h_print_char_color_buffered | ( | char | character, |
uint8_t | color | ||
) |
Print character on screen for mode 02h to internal buffer.
Print character on screen with given color of character and background. This function works on internal buffer.
character | Character. |
color | Color. |
int8_t mode02h_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 02h to external buffer.
Print character on screen with given color of character and background. This function works on external buffer.
buffer | Screen buffer. |
mode | Mode. |
x | X coordinate of screen cursor also returns new position of cursor. |
y | Y coordinate of screen cursor also returns new position of cursor. |
character | Character. |
color | Color. |
int8_t mode02h_print_char_external_buffer | ( | uint8_t * | buffer, |
uint16_t | mode, | ||
uint16_t * | x, | ||
uint16_t * | y, | ||
char | character | ||
) |
Print character on screen for mode 02h to external buffer.
Print character on screen without changing color of character and background. This function works on external buffer.
buffer | Screen buffer. |
mode | Mode. |
x | X coordinate of screen cursor also returns new position of cursor. |
y | Y coordinate of screen cursor also returns new position of cursor. |
character | Character. |
int8_t mode02h_print_string | ( | const char * | string | ) |
Print string on screen for mode 02h.
Print string on screen without changing color of characters and background.
string | String. |
int8_t mode02h_print_string_buffered | ( | const char * | string | ) |
Print string on screen for mode 02h to internal buffer.
Print string on screen without changing color of characters and background. This function works on internal buffer.
string | String. |
int8_t mode02h_print_string_color | ( | const char * | string, |
uint8_t | color | ||
) |
Print string on screen for mode 02h.
Print string on screen with given color of characters and background.
string | String. |
color | Color. |
int8_t mode02h_print_string_color_buffered | ( | const char * | string, |
uint8_t | color | ||
) |
Print string on screen for mode 02h to internal buffer.
Print string on screen with given color of characters and background. This function works on internal buffer.
string | String. |
color | Color. |
int8_t mode02h_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 02h to external buffer.
Print string on screen with given color of characters and background. This function works on external buffer.
buffer | Screen buffer. |
mode | Mode. |
x | X coordinate of screen cursor also returns new position of cursor. |
y | Y coordinate of screen cursor also returns new position of cursor. |
string | String. |
color | Color. |
int8_t mode02h_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 02h to external buffer.
Print string on screen without changing color of characters and background. This function works on external buffer.
buffer | Screen buffer. |
mode | Mode. |
x | X coordinate of screen cursor also returns new position of cursor. |
y | Y coordinate of screen cursor also returns new position of cursor. |
string | String. |
int8_t mode02h_set_char | ( | uint16_t | x, |
uint16_t | y, | ||
char | character | ||
) |
Set character on given point on screen for mode 02h.
Set character on given point on screen without changing color of character and background.
x | x coordinate. |
y | y coordinate. |
character | Character. |
int8_t mode02h_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 02h.
Set character and character color on given point on screen.
x | x coordinate. |
y | y coordinate. |
character | Character. |
color | Character color. |
int8_t mode02h_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 02h to internal buffer.
Set character and character color on given point on screen. This function works on internal buffer.
x | x coordinate. |
y | y coordinate. |
character | Character. |
color | Character color. |
int8_t mode02h_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 02h to external buffer.
Set character and character color on given point on screen. This function works on external buffer.
buffer | Screen buffer. |
mode | Mode. |
x | x coordinate. |
y | y coordinate. |
character | Character. |
color | Character color. |
int8_t mode02h_set_char_buffered | ( | uint16_t | x, |
uint16_t | y, | ||
char | character | ||
) |
Set character on given point on screen for mode 02h to internal buffer.
Set character on given point on screen without changing color of character and background. This function works on internal buffer.
x | x coordinate. |
y | y coordinate. |
character | Character. |
int8_t mode02h_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 02h to external buffer.
Set character on given point on screen without changing color of character and background. This function works on external buffer.
buffer | Screen buffer. |
mode | Mode. |
x | x coordinate. |
y | y coordinate. |
character | Character. |
int8_t mode02h_set_color | ( | uint16_t | x, |
uint16_t | y, | ||
uint8_t | color | ||
) |
Set character color on given point on screen for mode 02h.
Set character color on given point on screen without changing letter.
x | x coordinate. |
y | y coordinate. |
color | Color. |
int8_t mode02h_set_color_buffered | ( | uint16_t | x, |
uint16_t | y, | ||
uint8_t | color | ||
) |
Set character color on given point on screen for mode 02h to internal buffer.
Set character color on given point on screen without changing letter. This function works on internal buffer.
x | x coordinate. |
y | y coordinate. |
color | Color. |
int8_t mode02h_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 02h to external buffer.
Set character color on given point on screen without changing letter. This function works on external buffer.
buffer | Screen buffer. |
mode | Mode. |
x | x coordinate. |
y | y coordinate. |
color | Color. |
int8_t mode02h_set_cursor_pos | ( | uint16_t | x, |
uint16_t | y | ||
) |
Set cursor position for mode 02h.
Set cursor position on screen.
x | x coordinate. |
y | y coordinate. |
int8_t mode02h_set_cursor_pos_buffered | ( | uint16_t | x, |
uint16_t | y | ||
) |
Set cursor position for mode 02h to internal buffer.
Set cursor position on screen. This function works on internal buffer.
x | x coordinate. |
y | y coordinate. |
int8_t mode02h_set_mode | ( | ) |
int8_t mode02h_swap_buffers | ( | ) |
int8_t mode02h_swap_external_buffer | ( | uint8_t * | buffer, |
uint16_t | mode | ||
) |
int8_t mode02h_turn_cursor_off | ( | ) |
Turn off cursor for mode 02h.
int8_t mode02h_turn_cursor_on | ( | ) |
Turn on cursor for mode 02h.
Turn on cursor with default size and position. Copy screen from one to another.
int8_t mode02h_turn_off_buffer | ( | ) |
int8_t mode02h_turn_on_buffer | ( | ) |
uint8_t g_80x25_text_02h[] |
unsigned char g_8x16_font_02h[4096] |
screen_char* mode02h_buffer = NULL |
uint16_t mode02h_buffer_cursor_x = 0 |
uint16_t mode02h_buffer_cursor_y = 0 |
unsigned char palette02H[] |