From 92a161f870fd1c40dbdfd833aae13776d9b3d9d8 Mon Sep 17 00:00:00 2001 From: Stephen Crane Date: Mon, 12 Nov 2018 07:47:06 +0000 Subject: [PATCH] track r65emu library updates --- Makefile | 3 ++- config.h | 6 +++--- io.cpp | 9 +++++---- io.h | 2 +- 4 files changed, 11 insertions(+), 9 deletions(-) diff --git a/Makefile b/Makefile index 16ba4df..17a8420 100644 --- a/Makefile +++ b/Makefile @@ -1,6 +1,7 @@ PROCESSOR_FAMILY := lm4f BOARD := lplm4f120h5qr # watch the CPU execute -#LOCAL_CPPFLAGS := -DCPU_DEBUG +#CPPFLAGS := -DCPU_DEBUG +CPPFLAGS := -DHARDWARE_H=\"hw/lm4f-utft-sd.h\" include energia10.mk diff --git a/config.h b/config.h index f81d72b..8a13c5b 100644 --- a/config.h +++ b/config.h @@ -7,10 +7,10 @@ #define CPU_INSTRUCTIONS 1000 -#define TFT_FG VGA_LIME -#define TFT_BG VGA_BLACK +#define TFT_FG GREEN +#define TFT_BG BLACK #define PROGRAMS "/apple1/" -#define KRUSADER 1 +#define KRUSADER #endif diff --git a/io.cpp b/io.cpp index 0dd42cf..575a1a9 100644 --- a/io.cpp +++ b/io.cpp @@ -1,6 +1,7 @@ -#include +#include +#include #include -#include +#include #include #include #include @@ -16,7 +17,7 @@ static unsigned r, c; static char screen[ROWS][COLS]; void io::reset() { - UTFTDisplay::begin(TFT_BG, TFT_FG); + TFTDisplay::begin(TFT_BG, TFT_FG); clear(); _cy += 2; @@ -97,7 +98,7 @@ void io::draw(char ch, int i, int j) { if (screen[j][i] != ch) { screen[j][i] = ch; char c[2] = { ch, 0 }; - utft.print(c, i*_cx, j*_cy); + drawString(c, i*_cx, j*_cy); } } diff --git a/io.h b/io.h index 7f3396e..dda30fa 100644 --- a/io.h +++ b/io.h @@ -2,7 +2,7 @@ #define _IO_H // http://mamedev.org/source/src/mess/machine/apple1.c.html -class io: public UTFTDisplay, Keyboard, public pia { +class io: public TFTDisplay, Keyboard, public pia { public: virtual void reset(); virtual void down(uint8_t scan);