mirror of
https://github.com/RyuKojiro/apple1.git
synced 2024-12-27 05:30:21 +00:00
Better comments
This commit is contained in:
parent
9618b33c5e
commit
b60d953003
@ -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';
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user