- Treballant en el editor de codi
This commit is contained in:
14
ascii.cpp
14
ascii.cpp
@@ -254,9 +254,9 @@ int main(int argc,char*argv[]) {
|
||||
} else {
|
||||
debug_cursor_blink--;
|
||||
if (debug_cursor_blink == 0) {
|
||||
debug_cursor_blink = 30;
|
||||
debug_cursor_blink = 60;
|
||||
const int pos = cursor_x+cursor_y*screen_width;
|
||||
char_screen[pos] = char_screen[pos]==32 ? 95 : 32;
|
||||
//char_screen[pos] = char_screen[pos]==32 ? 95 : 32;
|
||||
}
|
||||
loop();
|
||||
}
|
||||
@@ -266,7 +266,10 @@ int main(int argc,char*argv[]) {
|
||||
case 0:
|
||||
for (int y=0; y<screen_height; ++y) {
|
||||
for (int x=0; x<screen_width; ++x) {
|
||||
const uint8_t chr_color = current_color; //COLSCR(x,y);
|
||||
uint8_t chr_color = current_color; //COLSCR(x,y);
|
||||
if ((debug_cursor_blink<30)&&(cursor_x==x)&&(cursor_y==y)) {
|
||||
chr_color = (chr_color>>4)+((chr_color&0x0f)<<4);
|
||||
}
|
||||
const uint32_t ink_color = palette[chr_color & 0x0f];
|
||||
const uint32_t paper_color = palette[chr_color >> 4];
|
||||
const uint8_t chr = CHRSCR(x,y);
|
||||
@@ -581,6 +584,11 @@ void prev_cmd() {
|
||||
get_cmd_by_index();
|
||||
}
|
||||
|
||||
void debug_set_cursor(uint8_t x, uint8_t y) {
|
||||
cursor_x = x;
|
||||
cursor_y = y;
|
||||
}
|
||||
|
||||
uint8_t ascii(const char *str, uint8_t index) {
|
||||
return str[index];
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user