mirror of
https://github.com/hneemann/Digital.git
synced 2025-09-15 07:48:29 -04:00
fixed a bug
This commit is contained in:
parent
556a03ade5
commit
3c7b16b1b1
@ -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);
|
||||
}
|
||||
|
||||
}
|
||||
|
@ -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) {
|
||||
|
Loading…
x
Reference in New Issue
Block a user