1
0
mirror of https://github.com/rkujawa/rk65c02.git synced 2024-12-22 15:31:12 +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 */
while (i < bufsize) {
t->space[i] = buf[i]; // XXX: overflow addr
t->space[addr+i] = buf[i]; // XXX: overflow addr
i++;
}