Better comments

This commit is contained in:
Daniel Loffgren 2019-02-01 03:19:06 -08:00
parent 9618b33c5e
commit b60d953003
1 changed files with 2 additions and 1 deletions

View File

@ -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) { uint8_t keyboardReadReadyCallback(struct _v6502_memory *memory, uint16_t offset, int trap, a1pia *context) {
// Feed fake data to non-programs
if (!trap) { if (!trap) {
return 0xbf; return 0xbf;
} }
@ -187,7 +188,7 @@ uint8_t keyboardReadCharacterCallback(struct _v6502_memory *memory, uint16_t off
if (context->buf) { if (context->buf) {
uint8_t a = a1CharFromAsciiChar(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) { if (trap) {
context->buf = '\0'; context->buf = '\0';
} }