mirror of https://github.com/contiki-ng/mspsim
Possible values for portwrite 0,1,x
but x not implemented therefore now 0 is returned
This commit is contained in:
parent
243797edc7
commit
c8c2b69662
|
|
@ -309,11 +309,12 @@ public class IOPort extends IOUnit {
|
|||
}
|
||||
}
|
||||
|
||||
//Possible Output 0,1,x but x not implemented therefore 0 is returned
|
||||
private int CalcPortOut(){
|
||||
int selactive= sel ^ sel2;
|
||||
int selValCombine= ((sel & selValue) | (sel2 & selValue2 )) & selactive;
|
||||
int outVal=(~selactive & out);
|
||||
return (selValCombine | outVal | ~dir ) & 0xff;
|
||||
return (selValCombine | (outVal & dir) ) & 0xff;
|
||||
}
|
||||
|
||||
private void writePort(PortReg function, int data, long cycles) {
|
||||
|
|
|
|||
|
|
@ -75,7 +75,7 @@ public class Exp5438Gui extends AbstractNodeGUI {
|
|||
};
|
||||
|
||||
public Exp5438Gui(Exp5438Node node) {
|
||||
super("MSPSIM fork by Prof. Rüdiger Heintz 0.4.13", "images/MSP-EXP430F5438.jpg");
|
||||
super("MSPSIM fork by Prof. Rüdiger Heintz 0.4.15", "images/MSP-EXP430F5438.jpg");
|
||||
this.node = node;
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue