for now, no bus error if nothing is listening to a write/read memory address
This commit is contained in:
parent
15dc1697c9
commit
c9ed7cfd7b
1 changed files with 3 additions and 1 deletions
4
bus.cpp
4
bus.cpp
|
@ -50,6 +50,7 @@ void bus::clearmem()
|
||||||
|
|
||||||
uint16_t bus::read(const uint16_t a, const bool word_mode, const bool use_prev)
|
uint16_t bus::read(const uint16_t a, const bool word_mode, const bool use_prev)
|
||||||
{
|
{
|
||||||
|
// fprintf(stderr, "read [%d] from %06o [%d]\n", word_mode, a, use_prev);
|
||||||
uint16_t temp = 0;
|
uint16_t temp = 0;
|
||||||
|
|
||||||
if (a >= 0160000) {
|
if (a >= 0160000) {
|
||||||
|
@ -264,6 +265,7 @@ uint16_t bus::read(const uint16_t a, const bool word_mode, const bool use_prev)
|
||||||
|
|
||||||
uint16_t bus::write(const uint16_t a, const bool word_mode, uint16_t value, const bool use_prev)
|
uint16_t bus::write(const uint16_t a, const bool word_mode, uint16_t value, const bool use_prev)
|
||||||
{
|
{
|
||||||
|
// fprintf(stderr, "write [%d] %06o to %06o\n", word_mode, value, a);
|
||||||
//D(fprintf(stderr, "write bus %o(%d): %o\n", a, word_mode, value);)
|
//D(fprintf(stderr, "write bus %o(%d): %o\n", a, word_mode, value);)
|
||||||
|
|
||||||
if (a >= 0160000) {
|
if (a >= 0160000) {
|
||||||
|
@ -440,7 +442,7 @@ uint16_t bus::write(const uint16_t a, const bool word_mode, uint16_t value, cons
|
||||||
D(fprintf(stderr, "bus::writeWord: odd address UNHANDLED\n");)
|
D(fprintf(stderr, "bus::writeWord: odd address UNHANDLED\n");)
|
||||||
D(fprintf(stderr, "UNHANDLED write %o(%c): %o\n", a, word_mode ? 'B' : ' ', value);)
|
D(fprintf(stderr, "UNHANDLED write %o(%c): %o\n", a, word_mode ? 'B' : ' ', value);)
|
||||||
|
|
||||||
c -> busError();
|
// c -> busError();
|
||||||
|
|
||||||
return value;
|
return value;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Reference in a new issue