fixed a bug

This commit is contained in:
hneemann 2016-04-10 18:02:25 +02:00
parent 556a03ade5
commit 3c7b16b1b1
2 changed files with 9 additions and 1 deletions

View File

@ -81,6 +81,13 @@ public class ROM extends Node implements Element {
output.set(data.getData(addr), !sel);
}
/**
* @return the value representing the input address
*/
public ObservableValue getAddrIn() {
return addrIn;
}
/**
* @return the last used input address
*/
@ -103,4 +110,5 @@ public class ROM extends Node implements Element {
if (showList && listFile != null)
model.addRomListing(this);
}
}

View File

@ -58,7 +58,7 @@ public class ROMListingDialog extends JDialog implements Observer {
@Override
public void hasChanged() {
int addr = (int) rom.getAddrIn().getValueIgnoreBurn();
int addr = (int) rom.getRomAddress();
if (addr != lastAddr) {
Integer line = listing.getLine(addr);
if (line != null) {