From b60d9530039ce08866955723cc30089a27e1d1fa Mon Sep 17 00:00:00 2001 From: Daniel Loffgren Date: Fri, 1 Feb 2019 03:19:06 -0800 Subject: [PATCH] Better comments --- src/pia.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/pia.c b/src/pia.c index db68248..b92a40c 100644 --- a/src/pia.c +++ b/src/pia.c @@ -127,6 +127,7 @@ void videoWriteNewlineCallback(struct _v6502_memory *memory, uint16_t offset, ui } uint8_t keyboardReadReadyCallback(struct _v6502_memory *memory, uint16_t offset, int trap, a1pia *context) { + // Feed fake data to non-programs if (!trap) { return 0xbf; } @@ -187,7 +188,7 @@ uint8_t keyboardReadCharacterCallback(struct _v6502_memory *memory, uint16_t off if (context->buf) { uint8_t a = a1CharFromAsciiChar(context->buf); - // Only pop the character off the buffer if this is a trapped read + // Only pop the character off the buffer if this is an actual program if (trap) { context->buf = '\0'; }