From 97c7709dc7fc841bb9ce324c9c2fe52bcafc9c6c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Rados=C5=82aw=20Kujawa?= Date: Thu, 23 Feb 2017 23:04:45 +0100 Subject: [PATCH] Fix device offset computation in bus writes. --- src/bus.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/bus.c b/src/bus.c index 01f7e7d..9ed3695 100644 --- a/src/bus.c +++ b/src/bus.c @@ -94,7 +94,7 @@ bus_write_1(bus_t *t, uint16_t addr, uint8_t val) } printf("bus WRITE @ %x (off %x) value %x\n", addr, addr - doff, val); - d->write_1(d, addr, val); + d->write_1(d, addr - doff, val); } bus_t