chiark
/
gitweb
/
~tthurman
/
albert.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
(parent:
774a7ed
)
experimental tty mode 7 support
author
Thomas Thurman
<tthurman@gnome.org>
Fri, 26 Mar 2010 00:03:25 +0000 (20:03 -0400)
committer
Thomas Thurman
<tthurman@gnome.org>
Fri, 26 Mar 2010 00:03:25 +0000 (20:03 -0400)
src/Memory.cpp
patch
|
blob
|
history
diff --git
a/src/Memory.cpp
b/src/Memory.cpp
index
6a64f05
..
823fa27
100644
(file)
--- a/
src/Memory.cpp
+++ b/
src/Memory.cpp
@@
-1,6
+1,7
@@
#include "Memory.h"
#include <QFile>
#include <QDebug>
+#include <stdio.h>
// 0000 to 7FFF - RAM
// 8000 to BFFF - one or more language ROMs
@@
-87,6
+88,11
@@
void Memory::writeByteTo(int position, int byte) {
// Memory write.
m_ram[position] = byte & 0xFF;
+ if (position>=0x7C00 && position<=0x7CFF) {
+ // Mode 7 memory write. Just dump it for now.
+ printf("%c", byte);
+ }
+
} else if (position>=0xFC00 && position<=0xFCFF) {
// FRED write.