Don't reset the keyboard register if set to not trap

git-svn-id: svn+ssh://svn.phoenixbox.net/svn/apple1/trunk@61 64f78de7-aa59-e511-a0e8-0002a5492df0
This commit is contained in:
Daniel Loffgren 2015-09-26 20:09:27 +00:00
parent 882da238f4
commit 40eef69b01
1 changed files with 3 additions and 1 deletions

View File

@ -116,7 +116,9 @@ uint8_t keyboardReadReadyCallback(struct _v6502_memory *memory, uint16_t offset,
uint8_t keyboardReadCharacterCallback(struct _v6502_memory *memory, uint16_t offset, int trap, a1pia *context) {
if (context->buf) {
uint8_t a = a1CharFromAsciiChar(context->buf);
context->buf = '\0';
if (trap) {
context->buf = '\0';
}
return a;
}