mirror of
https://github.com/hneemann/Digital.git
synced 2025-09-16 16:34:47 -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);
|
output.set(data.getData(addr), !sel);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @return the value representing the input address
|
||||||
|
*/
|
||||||
|
public ObservableValue getAddrIn() {
|
||||||
|
return addrIn;
|
||||||
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @return the last used input address
|
* @return the last used input address
|
||||||
*/
|
*/
|
||||||
@ -103,4 +110,5 @@ public class ROM extends Node implements Element {
|
|||||||
if (showList && listFile != null)
|
if (showList && listFile != null)
|
||||||
model.addRomListing(this);
|
model.addRomListing(this);
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
@ -58,7 +58,7 @@ public class ROMListingDialog extends JDialog implements Observer {
|
|||||||
|
|
||||||
@Override
|
@Override
|
||||||
public void hasChanged() {
|
public void hasChanged() {
|
||||||
int addr = (int) rom.getAddrIn().getValueIgnoreBurn();
|
int addr = (int) rom.getRomAddress();
|
||||||
if (addr != lastAddr) {
|
if (addr != lastAddr) {
|
||||||
Integer line = listing.getLine(addr);
|
Integer line = listing.getLine(addr);
|
||||||
if (line != null) {
|
if (line != null) {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user