better font rendering and start of z80 access

This commit is contained in:
2026-08-30 11:59:05 +02:00
parent 793c816148
commit 073a538794
28 changed files with 2960 additions and 44 deletions

26
main.c
View File

@@ -5,18 +5,9 @@
#include "pico/multicore.h"
#include "cvideo.h"
#include "core_comm.h"
#include "text_mode.h"
// --------------------------------
// CORE 1
// --------------------------------
void core1_entry() {
// Nothing yet
}
// --------------------------------
#include "core1.h"
// --------------------------------
@@ -113,9 +104,9 @@ void main() {
video_init(fb0);
text_mode_clear_buffer();
text_mode_puts("+------------------------------+\r");
text_mode_puts("| Pico-PAL text mode |\r");
text_mode_puts("+------------------------------+\r");
text_mode_puts("+------------------------------+\r\n");
text_mode_puts("| Pico-PAL Text Mode |\r\n");
text_mode_puts("+------------------------------+\r\n");
gpio_init(25);
gpio_set_dir(25, GPIO_OUT);
@@ -125,6 +116,13 @@ void main() {
while (true) {
poll_usb_console();
uint32_t value;
while (core0_try_read_from_core1(&value)) {
char ch = (char)value;
text_mode_put_char((char)ch);
putchar(ch);
}
// Check if need to draw new frame
if(framebuffer_switched){
gpio_put(25, fbnum);