mirror of
https://github.com/RyuKojiro/apple1.git
synced 2025-01-15 07:34:14 +00:00
Always make sure the keyboard buffer is also cleared, to prevent garbage being captured on start
git-svn-id: svn+ssh://svn.phoenixbox.net/svn/apple1/trunk@68 64f78de7-aa59-e511-a0e8-0002a5492df0
This commit is contained in:
parent
39b525ae71
commit
0c661a6ebb
@ -129,7 +129,8 @@ a1pia *pia_create(v6502_memory *mem) {
|
||||
a1pia *pia = malloc(sizeof(a1pia));
|
||||
pia->memory = mem;
|
||||
pia->screen = NULL;
|
||||
|
||||
pia->buf = '\0';
|
||||
|
||||
assert(v6502_map(mem, A1PIA_KEYBOARD_INPUT_REGISTER, 1, (v6502_readFunction *)keyboardReadCharacterCallback, NULL, pia));
|
||||
assert(v6502_map(mem, A1PIA_KEYBOARD_READY_REGISTER, 1, (v6502_readFunction *)keyboardReadReadyCallback, NULL, pia));
|
||||
assert(v6502_map(mem, A1PIA_VIDEO_OUTPUT_REGISTER, 1, FIXME_I_SHOULDNT_BE_NULL, (v6502_writeFunction *)videoWriteCharCallback, pia));
|
||||
|
Loading…
x
Reference in New Issue
Block a user