mirror of
https://github.com/jscrane/Apple1.git
synced 2025-02-16 17:30:28 +00:00
minor changes
This commit is contained in:
parent
68f1a71ad7
commit
dfe08c4893
2
io.cpp
2
io.cpp
@ -17,7 +17,7 @@ static unsigned r, c;
|
||||
static char screen[ROWS][COLS];
|
||||
|
||||
void io::reset() {
|
||||
TFTDisplay::begin(TFT_BG, TFT_FG);
|
||||
TFTDisplay::begin(TFT_BG, TFT_FG, reverse_landscape);
|
||||
clear();
|
||||
_cy += 2;
|
||||
|
||||
|
27
pia.cpp
27
pia.cpp
@ -1,15 +1,16 @@
|
||||
#include <Arduino.h>
|
||||
#include <Stream.h>
|
||||
#include <stdint.h>
|
||||
#include <memory.h>
|
||||
#include "pia.h"
|
||||
|
||||
void pia::operator=(uint8_t b) {
|
||||
/*
|
||||
Serial.print(millis());
|
||||
Serial.print(" > ");
|
||||
Serial.print(_acc, 16);
|
||||
Serial.print(' ');
|
||||
Serial.println(b, 16);
|
||||
*/
|
||||
#if defined(DEBUGGING)
|
||||
Serial.print(millis());
|
||||
Serial.print(" > ");
|
||||
Serial.print(_acc, 16);
|
||||
Serial.print(' ');
|
||||
Serial.println(b, 16);
|
||||
#endif
|
||||
switch(_acc % 4) {
|
||||
case 0:
|
||||
write_porta(b);
|
||||
@ -27,11 +28,11 @@ Serial.println(b, 16);
|
||||
}
|
||||
|
||||
pia::operator uint8_t() {
|
||||
/*
|
||||
Serial.print(millis());
|
||||
Serial.print(" < ");
|
||||
Serial.println(_acc, 16);
|
||||
*/
|
||||
#if defined(DEBUGGING)
|
||||
Serial.print(millis());
|
||||
Serial.print(" < ");
|
||||
Serial.println(_acc, 16);
|
||||
#endif
|
||||
switch (_acc % 4) {
|
||||
case 0:
|
||||
return read_porta();
|
||||
|
Loading…
x
Reference in New Issue
Block a user