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:
parent
3075ed87fa
commit
6711a8fe11
@ -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++;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user