mirror of
https://github.com/jscrane/Apple1.git
synced 2024-12-22 18:29:30 +00:00
track r65emu library updates
This commit is contained in:
parent
db9de4bdde
commit
92a161f870
3
Makefile
3
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
|
||||
|
6
config.h
6
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
|
||||
|
9
io.cpp
9
io.cpp
@ -1,6 +1,7 @@
|
||||
#include <UTFT.h>
|
||||
#include <Stream.h>
|
||||
#include <stdint.h>
|
||||
#include <memory.h>
|
||||
#include <utftdisplay.h>
|
||||
#include <tftdisplay.h>
|
||||
#include <sdtape.h>
|
||||
#include <keyboard.h>
|
||||
#include <timed.h>
|
||||
@ -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);
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user