minor changes

This commit is contained in:
Stephen Crane 2018-11-12 22:15:16 +00:00
parent 68f1a71ad7
commit dfe08c4893
2 changed files with 15 additions and 14 deletions

2
io.cpp
View File

@ -17,7 +17,7 @@ static unsigned r, c;
static char screen[ROWS][COLS]; static char screen[ROWS][COLS];
void io::reset() { void io::reset() {
TFTDisplay::begin(TFT_BG, TFT_FG); TFTDisplay::begin(TFT_BG, TFT_FG, reverse_landscape);
clear(); clear();
_cy += 2; _cy += 2;

27
pia.cpp
View File

@ -1,15 +1,16 @@
#include <Arduino.h> #include <Stream.h>
#include <stdint.h>
#include <memory.h> #include <memory.h>
#include "pia.h" #include "pia.h"
void pia::operator=(uint8_t b) { void pia::operator=(uint8_t b) {
/* #if defined(DEBUGGING)
Serial.print(millis()); Serial.print(millis());
Serial.print(" > "); Serial.print(" > ");
Serial.print(_acc, 16); Serial.print(_acc, 16);
Serial.print(' '); Serial.print(' ');
Serial.println(b, 16); Serial.println(b, 16);
*/ #endif
switch(_acc % 4) { switch(_acc % 4) {
case 0: case 0:
write_porta(b); write_porta(b);
@ -27,11 +28,11 @@ Serial.println(b, 16);
} }
pia::operator uint8_t() { pia::operator uint8_t() {
/* #if defined(DEBUGGING)
Serial.print(millis()); Serial.print(millis());
Serial.print(" < "); Serial.print(" < ");
Serial.println(_acc, 16); Serial.println(_acc, 16);
*/ #endif
switch (_acc % 4) { switch (_acc % 4) {
case 0: case 0:
return read_porta(); return read_porta();