projects
/
calu.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
sim: added uart extension
[calu.git]
/
3b_sim
/
extensions
/
cprog.hpp
diff --git
a/3b_sim/extensions/cprog.hpp
b/3b_sim/extensions/cprog.hpp
index 82d83cfd6ccbebe71b05b6c8d67af4cb0ebc74aa..aa695a592f445d33cc6c9662bd94b39e92bca1c7 100644
(file)
--- a/
3b_sim/extensions/cprog.hpp
+++ b/
3b_sim/extensions/cprog.hpp
@@
-6,6
+6,7
@@
class Cprog : public Iext {
void applyTick() {};
void loadData(const int address, CDat value);
CDat readData(const int) { return 0; }
void applyTick() {};
void loadData(const int address, CDat value);
CDat readData(const int) { return 0; }
+ void parseInput(const vector<string>&) {};
private:
int m_writeAddress;
};
private:
int m_writeAddress;
};
@@
-13,7
+14,7
@@
class Cprog : public Iext {
void Cprog::loadData(const int address, CDat value)
{
if(address == 0x2034) {
void Cprog::loadData(const int address, CDat value)
{
if(address == 0x2034) {
- m_writeAddress =
value
;
+ m_writeAddress =
(value*4)
;
//adress pointer
}
else if(address == 0x2038) {
//adress pointer
}
else if(address == 0x2038) {