sim: added uart extension
[calu.git] / 3b_sim / extensions / cprog.hpp
index 82d83cfd6ccbebe71b05b6c8d67af4cb0ebc74aa..aa695a592f445d33cc6c9662bd94b39e92bca1c7 100644 (file)
@@ -6,6 +6,7 @@ class Cprog : public Iext {
                void applyTick() {};
                void loadData(const int address, CDat value);
                CDat readData(const int) { return 0; }
+               void parseInput(const vector<string>&)  {};
        private:
                int m_writeAddress;
 };
@@ -13,7 +14,7 @@ class Cprog : public Iext {
 void Cprog::loadData(const int address, CDat value)
 {
        if(address == 0x2034) {
-               m_writeAddress = value;
+               m_writeAddress = (value*4);
                //adress pointer
        }
        else if(address == 0x2038) {