1
0
mirror of https://github.com/sehugg/8bitworkshop.git synced 2024-07-04 12:29:31 +00:00
8bitworkshop/presets/coleco/text.c

28 lines
541 B
C
Raw Normal View History

#include <cv.h>
#include <cvu.h>
2017-05-02 13:09:53 +00:00
2019-08-19 14:24:22 +00:00
#include "common.h"
//#link "common.c"
2017-05-02 13:09:53 +00:00
void setup_text_mode() {
2017-05-02 13:09:53 +00:00
cv_set_screen_mode(CV_SCREENMODE_TEXT);
cv_set_image_table(IMAGE);
cv_set_character_pattern_t(PATTERN);
cvu_vmemset(0, 0, 0x4000);
2019-08-19 14:24:22 +00:00
copy_default_character_set();
2017-05-02 13:09:53 +00:00
}
void show_text() {
2017-05-02 13:09:53 +00:00
cv_set_colors(CV_COLOR_LIGHT_GREEN, CV_COLOR_BLACK);
cvu_vmemset(IMAGE, '.', 40*24);
2017-05-02 13:09:53 +00:00
cvu_memtovmemcpy(IMAGE + 1, "Hello Professor Falken", 22);
cv_set_screen_active(true);
}
void main() {
setup_text_mode();
show_text();
2017-05-02 13:09:53 +00:00
while (1);
}