1
0
mirror of https://github.com/rkujawa/rk65c02.git synced 2024-12-13 01:29:57 +00:00

Fix bus space array indexing. Makes bus loading from buffer work.

This commit is contained in:
Radosław Kujawa 2017-02-02 14:43:02 +01:00
parent 3075ed87fa
commit 6711a8fe11

View File

@ -57,7 +57,7 @@ bus_load_buf(bus_t *t, uint16_t addr, uint8_t *buf, uint16_t bufsize)
/* XXX: add sanity checks */ /* XXX: add sanity checks */
while (i < bufsize) { while (i < bufsize) {
t->space[i] = buf[i]; // XXX: overflow addr t->space[addr+i] = buf[i]; // XXX: overflow addr
i++; i++;
} }