Implemented missing ALi M1543C behavior.

This commit is contained in:
OBattler
2022-12-04 22:59:22 +01:00
parent f2ff608e34
commit 60b5c5ba74
3 changed files with 26 additions and 0 deletions

View File

@@ -892,6 +892,23 @@ nvr_at_handler(int set, uint16_t base, nvr_t *nvr)
nvr_read, NULL, NULL, nvr_write, NULL, NULL, nvr);
}
void
nvr_at_index_read_handler(int set, uint16_t base, nvr_t *nvr)
{
io_handler(0, base, 1,
nvr_read, NULL, NULL, NULL, NULL, NULL, nvr);
nvr_at_handler(0, base, nvr);
if (set)
nvr_at_handler(1, base, nvr);
else {
io_handler(set, base, 1,
nvr_read, NULL, NULL, NULL, NULL, NULL, nvr);
io_handler(set, base + 1, 1,
nvr_read, NULL, NULL, nvr_write, NULL, NULL, nvr);
}
}
void
nvr_at_sec_handler(int set, uint16_t base, nvr_t *nvr)
{