mirror of
https://github.com/mauiaaron/apple2.git
synced 2025-01-12 06:29:58 +00:00
Faster keyboard read
This commit is contained in:
parent
191a1b7395
commit
30b8f308c6
7
src/vm.c
7
src/vm.c
@ -137,10 +137,7 @@ GLUE_C_WRITE(write_unmapped_softswitch)
|
|||||||
// ...
|
// ...
|
||||||
}
|
}
|
||||||
|
|
||||||
GLUE_C_READ(read_keyboard)
|
GLUE_FIXED_READ(read_keyboard,apple_ii_64k);
|
||||||
{
|
|
||||||
return apple_ii_64k[0][0xC000];
|
|
||||||
}
|
|
||||||
|
|
||||||
GLUE_C_READ(read_keyboard_strobe)
|
GLUE_C_READ(read_keyboard_strobe)
|
||||||
{
|
{
|
||||||
@ -879,7 +876,7 @@ GLUE_C_READ(iie_check_vbl)
|
|||||||
{
|
{
|
||||||
bool vbl_bar = false;
|
bool vbl_bar = false;
|
||||||
video_scanner_get_address(&vbl_bar, cpu65_cycle_count);
|
video_scanner_get_address(&vbl_bar, cpu65_cycle_count);
|
||||||
uint8_t key = c_read_keyboard(0xC000);
|
uint8_t key = apple_ii_64k[0][0xC000];
|
||||||
return (key & ~0x80) | (vbl_bar ? 0x80 : 0x00);
|
return (key & ~0x80) | (vbl_bar ? 0x80 : 0x00);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user