This commit is contained in:
Stephen Crane 2014-11-11 17:13:25 +00:00
parent cee596038b
commit 6aa496cbac
11 changed files with 841 additions and 3 deletions

6
Makefile Normal file
View File

@ -0,0 +1,6 @@
PROCESSOR_FAMILY := lm4f
BOARD := lplm4f120h5qr
# watch the CPU execute
LOCAL_CPPFLAGS := -DCPU_DEBUG
include energia.mk

View File

@ -1,4 +1,4 @@
Apple1-Energia
==============
Apple-1 Emulator
================
Apple-1 Emulator in Energia with r65emu
- see [https://github.com/nobuh/napple1](napple1)

4
TODO.md Normal file
View File

@ -0,0 +1,4 @@
- shiftmap for keyboard
- scrolling screen
- checkpoint and restore images (i.e., startrek)
- break out PIA abstraction

72
apple1.ino Normal file
View File

@ -0,0 +1,72 @@
#include <stdarg.h>
#include <SPI.h>
#include <SD.h>
#include <SpiRAM.h>
#include <UTFT.h>
#include <r65emu.h>
#include "roms/basic.h"
#include "roms/monitor.h"
#include "io.h"
#include "config.h"
prom b(basic, sizeof(basic));
prom m(monitor, sizeof(monitor));
ram pages[RAM_SIZE / 1024];
io io;
void status(const char *fmt, ...) {
char tmp[256];
va_list args;
va_start(args, fmt);
vsnprintf(tmp, sizeof(tmp), fmt, args);
Serial.println(tmp);
io.clear();
io.error(tmp);
va_end(args);
}
jmp_buf ex;
r6502 cpu(&memory, &ex, status);
bool halted = false;
void reset() {
bool sd = hardware_reset();
io.reset();
halted = (setjmp(ex) != 0);
}
void setup() {
Serial.begin(115200);
Serial.println("hello world");
hardware_init(cpu);
for (unsigned i = 0; i < RAM_SIZE; i += 1024)
memory.put(pages[i / 1024], i);
memory.put(io, 0xd000);
memory.put(b, 0xe000);
memory.put(m, 0xff00);
reset();
}
void loop() {
if (ps2.available()) {
unsigned key = ps2.read();
if (!ps2.isbreak())
io.down(key);
else {
switch (key) {
case PS2_F1:
reset();
break;
default:
io.up(key);
break;
}
}
} else if (!halted)
cpu.run(CPU_INSTRUCTIONS);
}

10
config.h Normal file
View File

@ -0,0 +1,10 @@
#ifndef _CONFIG_H
#define _CONFIG_H
#define RAM_SIZE 4096
#define CPU_INSTRUCTIONS 1000
#define TFT_FG VGA_LIME
#define TFT_BG VGA_BLACK
#endif

BIN
images/basic.rom Normal file

Binary file not shown.

BIN
images/monitor.rom Normal file

Binary file not shown.

175
io.cpp Normal file
View File

@ -0,0 +1,175 @@
#include <UTFT.h>
#include <memory.h>
#include <utftdisplay.h>
#include "io.h"
#include "config.h"
#include "hardware.h"
static byte dsp_cr, dsp, kbd_cr, kbd;
static unsigned kbd_int, dsp_out;
#define ROWS 24
#define COLS 40
static unsigned r, c;
static char screen[ROWS * COLS];
void io::reset() {
UTFTDisplay::begin(TFT_BG, TFT_FG);
clear();
dsp_cr = kbd_cr = 0;
kbd_int = dsp_out = 0;
r = c = 0;
}
// need ascii map for scan-codes
static const byte scanmap[] {
0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, // 0x00
0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0x60, 0xff, // 0x08
0xff, 0xff, 0xff, 0xff, 0xff, 0x51, 0x31, 0xff, // 0x10
0xff, 0xff, 0x5a, 0x53, 0x41, 0x57, 0x32, 0xff, // 0x18
0xff, 0x43, 0x58, 0x44, 0x45, 0x34, 0x33, 0xff, // 0x20
0xff, 0x20, 0x56, 0x46, 0x54, 0x52, 0x35, 0xff, // 0x28
0xff, 0x4e, 0x42, 0x48, 0x47, 0x59, 0x36, 0xff, // 0x30
0xff, 0xff, 0x4d, 0x4a, 0x55, 0x37, 0x38, 0xff, // 0x38
0xff, 0x2c, 0x4b, 0x49, 0x4f, 0x30, 0x39, 0xff, // 0x40
0xff, 0x2e, 0x2f, 0x4c, 0x3b, 0x50, 0x2d, 0xff, // 0x48
0xff, 0xff, 0x27, 0xff, 0x5b, 0x3d, 0xff, 0xff, // 0x50
0xff, 0xff, 0x0d, 0x5d, 0xff, 0x23, 0xff, 0xff, // 0x58
0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0x5f, 0xff, // 0x60
0xff, 0x31, 0xff, 0x34, 0x37, 0xff, 0xff, 0xff, // 0x68
0x30, 0xff, 0x32, 0x35, 0x36, 0x38, 0xff, 0xff, // 0x70
0xff, 0x2b, 0x33, 0x2d, 0x2a, 0x39, 0xff, 0xff, // 0x78
};
void io::down(unsigned scan) {
kbd = 0;
}
void io::up(unsigned scan) {
kbd = scanmap[scan] + 0x80;
kbd_cr = 0xa7;
}
void io::display(byte b) {
int x = c * _cx, y = r * _cy;
char ch = (char)b;
switch(b) {
case 0x5f:
if (--c < 0) {
r--;
c = COLS-1;
}
ch = ' ';
utft.print(&ch, x, y);
break;
case 0x0a:
case 0x0d:
c = 0;
r++;
break;
default:
if (ch >= 0x20 && ch != 0x7f) {
utft.print(&ch, x, y);
if (++c == COLS) {
c = 0;
r++;
}
}
}
if (r == ROWS) {
// scroll
r--;
for (int j = 0; j < (ROWS-1); j++)
for (int i = 0; i < COLS; i++) {
int o = j*COLS + i, p = o + COLS;
if (screen[p] != screen[o]) {
screen[p] = screen[o];
utft.print(&screen[p], i*_cx, j*_cy);
}
}
for (int i = COLS; i-- > 0; ) {
int o = ROWS*COLS - i;
if (screen[o] != ' ') {
screen[o] = ' ';
utft.print(&screen[o], i*_cx, (ROWS-1)*_cy);
}
}
}
}
void io::operator=(byte b) {
Serial.print(">");
Serial.print(_acc, 16);
Serial.print(" ");
Serial.println(b, 16);
switch(_acc % 4) {
case 0:
kbd = b;
break;
case 1:
if (!kbd_int && b >= 0x80)
kbd_int = 1;
else
kbd_cr = b;
break;
case 2:
if (b >= 0x80)
b -= 0x80;
display(b);
dsp = b;
break;
case 3:
if (!dsp_out && dsp_cr >= 0x80)
dsp_out = 1;
else
dsp_cr = b;
break;
}
}
io::operator byte() {
switch (_acc % 4) {
case 0:
Serial.print("<");
Serial.print(_acc, 16);
Serial.print(" ");
Serial.println(kbd, 16);
return kbd;
case 1:
if (kbd_int && kbd_cr >= 0x80) {
kbd_cr = 0;
Serial.print("<");
Serial.print(_acc, 16);
Serial.print(" ");
Serial.println(0xa7, 16);
return 0xa7;
}
//Serial.println(kbd_cr, 16);
return kbd_cr;
case 2:
Serial.print("<");
Serial.print(_acc, 16);
Serial.print(" ");
Serial.println(dsp, 16);
return dsp;
case 3:
Serial.print("<");
Serial.print(_acc, 16);
Serial.print(" ");
Serial.println(dsp_cr, 16);
return dsp_cr;
}
return 0;
}
void io::checkpoint(Stream &s) {
}
void io::restore(Stream &s) {
}

23
io.h Normal file
View File

@ -0,0 +1,23 @@
#ifndef _IO_H
#define _IO_H
class io: public UTFTDisplay {
public:
io(): UTFTDisplay(256) {}
void operator=(byte);
operator byte();
void reset();
void down(unsigned scan);
void up(unsigned scan);
void checkpoint(Stream &);
void restore(Stream &);
private:
void display(byte);
};
#endif

514
roms/basic.h Normal file
View File

@ -0,0 +1,514 @@
static const unsigned char basic[] = {
0x4c, 0xb0, 0xe2, 0xad, 0x11, 0xd0, 0x10, 0xfb,
0xad, 0x10, 0xd0, 0x60, 0x8a, 0x29, 0x20, 0xf0,
0x23, 0xa9, 0xa0, 0x85, 0xe4, 0x4c, 0xc9, 0xe3,
0xa9, 0x20, 0xc5, 0x24, 0xb0, 0x0c, 0xa9, 0x8d,
0xa0, 0x07, 0x20, 0xc9, 0xe3, 0xa9, 0xa0, 0x88,
0xd0, 0xf8, 0xa0, 0x00, 0xb1, 0xe2, 0xe6, 0xe2,
0xd0, 0x02, 0xe6, 0xe3, 0x60, 0x20, 0x15, 0xe7,
0x20, 0x76, 0xe5, 0xa5, 0xe2, 0xc5, 0xe6, 0xa5,
0xe3, 0xe5, 0xe7, 0xb0, 0xef, 0x20, 0x6d, 0xe0,
0x4c, 0x3b, 0xe0, 0xa5, 0xca, 0x85, 0xe2, 0xa5,
0xcb, 0x85, 0xe3, 0xa5, 0x4c, 0x85, 0xe6, 0xa5,
0x4d, 0x85, 0xe7, 0xd0, 0xde, 0x20, 0x15, 0xe7,
0x20, 0x6d, 0xe5, 0xa5, 0xe4, 0x85, 0xe2, 0xa5,
0xe5, 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,
0x9f, 0xb9, 0x5f, 0x01, 0xa0, 0x00, 0x20, 0x08,
0xe7, 0x20, 0x82, 0xe7, 0x20, 0x59, 0xe7, 0x20,
0x15, 0xe7, 0xa4, 0xfb, 0xa5, 0xce, 0xf0, 0x05,
0x59, 0x37, 0x01, 0x10, 0x12, 0xb9, 0x3f, 0x01,
0x85, 0xdc, 0xb9, 0x47, 0x01, 0x85, 0xdd, 0xbe,
0x4f, 0x01, 0xb9, 0x57, 0x01, 0xd0, 0x87, 0xc6,
0xfb, 0x60, 0xa0, 0x54, 0xa5, 0xfb, 0xc9, 0x08,
0xf0, 0x9a, 0xe6, 0xfb, 0xa8, 0xb5, 0x50, 0x99,
0x20, 0x01, 0xb5, 0x78, 0x99, 0x28, 0x01, 0x60,
0x20, 0x15, 0xe7, 0xa4, 0xfb, 0xa5, 0xce, 0x99,
0x5f, 0x01, 0xa5, 0xcf, 0x99, 0x67, 0x01, 0xa9,
0x01, 0x99, 0x2f, 0x01, 0xa9, 0x00, 0x99, 0x37,
0x01, 0xa5, 0xdc, 0x99, 0x3f, 0x01, 0xa5, 0xdd,
0x99, 0x47, 0x01, 0xa5, 0xe0, 0x99, 0x4f, 0x01,
0xa5, 0xe1, 0x99, 0x57, 0x01, 0x60, 0x20, 0x15,
0xe7, 0xa4, 0xfb, 0xa5, 0xce, 0x99, 0x2f, 0x01,
0xa5, 0xcf, 0x4c, 0x66, 0xe9, 0x00, 0x00, 0x00,
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
0x00, 0x00, 0x00, 0xab, 0x03, 0x03, 0x03, 0x03,
0x03, 0x03, 0x03, 0x03, 0x03, 0x03, 0x03, 0x03,
0x03, 0x03, 0x3f, 0x3f, 0xc0, 0xc0, 0x3c, 0x3c,
0x3c, 0x3c, 0x3c, 0x3c, 0x3c, 0x30, 0x0f, 0xc0,
0xcc, 0xff, 0x55, 0x00, 0xab, 0xab, 0x03, 0x03,
0xff, 0xff, 0x55, 0xff, 0xff, 0x55, 0xcf, 0xcf,
0xcf, 0xcf, 0xcf, 0xff, 0x55, 0xc3, 0xc3, 0xc3,
0x55, 0xf0, 0xf0, 0xcf, 0x56, 0x56, 0x56, 0x55,
0xff, 0xff, 0x55, 0x03, 0x03, 0x03, 0x03, 0x03,
0x03, 0x03, 0xff, 0xff, 0xff, 0x03, 0x03, 0x03,
0x03, 0x03, 0x03, 0x03, 0x03, 0x03, 0x03, 0x03,
0x03, 0x03, 0x03, 0x03, 0x03, 0x00, 0xab, 0x03,
0x57, 0x03, 0x03, 0x03, 0x03, 0x07, 0x03, 0x03,
0x03, 0x03, 0x03, 0x03, 0x03, 0x03, 0x03, 0x03,
0x03, 0x03, 0xaa, 0xff, 0xff, 0xff, 0xff, 0xff,
0x17, 0xff, 0xff, 0x19, 0x5d, 0x35, 0x4b, 0xf2,
0xec, 0x87, 0x6f, 0xad, 0xb7, 0xe2, 0xf8, 0x54,
0x80, 0x96, 0x85, 0x82, 0x22, 0x10, 0x33, 0x4a,
0x13, 0x06, 0x0b, 0x4a, 0x01, 0x40, 0x47, 0x7a,
0x00, 0xff, 0x23, 0x09, 0x5b, 0x16, 0xb6, 0xcb,
0xff, 0xff, 0xfb, 0xff, 0xff, 0x24, 0xf6, 0x4e,
0x59, 0x50, 0x00, 0xff, 0x23, 0xa3, 0x6f, 0x36,
0x23, 0xd7, 0x1c, 0x22, 0xc2, 0xae, 0xba, 0x23,
0xff, 0xff, 0x21, 0x30, 0x1e, 0x03, 0xc4, 0x20,
0x00, 0xc1, 0xff, 0xff, 0xff, 0xa0, 0x30, 0x1e,
0xa4, 0xd3, 0xb6, 0xbc, 0xaa, 0x3a, 0x01, 0x50,
0x7e, 0xd8, 0xd8, 0xa5, 0x3c, 0xff, 0x16, 0x5b,
0x28, 0x03, 0xc4, 0x1d, 0x00, 0x0c, 0x4e, 0x00,
0x3e, 0x00, 0xa6, 0xb0, 0x00, 0xbc, 0xc6, 0x57,
0x8c, 0x01, 0x27, 0xff, 0xff, 0xff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x84, 0x48, 0xa5,
0xcf, 0x85, 0x49, 0x4c, 0xb6, 0xee, 0x20, 0x15,
0xe7, 0xa4, 0xce, 0xc4, 0xca, 0xa5, 0xcf, 0xe5,
0xcb, 0xb0, 0x09, 0x84, 0x4a, 0xa5, 0xcf, 0x85,
0x4b, 0x4c, 0xb7, 0xe5, 0x4c, 0xcb, 0xee, 0xea,
0xea, 0xea, 0xea, 0x20, 0xc9, 0xef, 0x20, 0x71,
0xe1, 0x4c, 0xbf, 0xef, 0x20, 0x03, 0xee, 0xa9,
0xff, 0x85, 0xc8, 0xa9, 0x74, 0x8d, 0x00, 0x02,
0x60, 0x20, 0x36, 0xe7, 0xe8, 0x20, 0x36, 0xe7,
0xb5, 0x50, 0x60, 0xa9, 0x00, 0x85, 0x4a, 0x85,
0x4c, 0xa9, 0x08, 0x85, 0x4b, 0xa9, 0x10, 0x85,
0x4d, 0x4c, 0xad, 0xe5, 0xd5, 0x78, 0xd0, 0x01,
0x18, 0x4c, 0x02, 0xe1, 0x20, 0xb7, 0xe5, 0x4c,
0x36, 0xe8, 0x20, 0xb7, 0xe5, 0x4c, 0x5b, 0xe8,
0xe0, 0x80, 0xd0, 0x01, 0x88, 0x4c, 0x0c, 0xe0,
};

34
roms/monitor.h Normal file
View File

@ -0,0 +1,34 @@
static const unsigned char monitor[] = {
0xd8, 0x58, 0xa0, 0x7f, 0x8c, 0x12, 0xd0, 0xa9,
0xa7, 0x8d, 0x11, 0xd0, 0x8d, 0x13, 0xd0, 0xc9,
0xdf, 0xf0, 0x13, 0xc9, 0x9b, 0xf0, 0x03, 0xc8,
0x10, 0x0f, 0xa9, 0xdc, 0x20, 0xef, 0xff, 0xa9,
0x8d, 0x20, 0xef, 0xff, 0xa0, 0x01, 0x88, 0x30,
0xf6, 0xad, 0x11, 0xd0, 0x10, 0xfb, 0xad, 0x10,
0xd0, 0x99, 0x00, 0x02, 0x20, 0xef, 0xff, 0xc9,
0x8d, 0xd0, 0xd4, 0xa0, 0xff, 0x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