ISYS8020: Corrected iSBC80-20 to enable/disable EPROM and RAM correctly
This commit is contained in:
parent
32945f5b70
commit
a663e1408b
1 changed files with 4 additions and 4 deletions
|
@ -102,11 +102,11 @@ int32 get_mbyte(int32 addr)
|
||||||
int32 val, org, len;
|
int32 val, org, len;
|
||||||
|
|
||||||
/* if local EPROM handle it */
|
/* if local EPROM handle it */
|
||||||
if ((i8255_unit.u6 & 0x01) && /* EPROM enabled? */
|
if ((i8255_unit.u5 & 0x01) && /* EPROM enabled? */
|
||||||
(addr >= EPROM_unit.u3) && (addr < (EPROM_unit.u3 + EPROM_unit.capac))) {
|
(addr >= EPROM_unit.u3) && (addr < (EPROM_unit.u3 + EPROM_unit.capac))) {
|
||||||
return EPROM_get_mbyte(addr);
|
return EPROM_get_mbyte(addr);
|
||||||
} /* if local RAM handle it */
|
} /* if local RAM handle it */
|
||||||
if ((i8255_unit.u6 & 0x02) && /* local RAM enabled? */
|
if ((i8255_unit.u5 & 0x02) && /* local RAM enabled? */
|
||||||
(addr >= RAM_unit.u3) && (addr < (RAM_unit.u3 + RAM_unit.capac))) {
|
(addr >= RAM_unit.u3) && (addr < (RAM_unit.u3 + RAM_unit.capac))) {
|
||||||
return RAM_get_mbyte(addr);
|
return RAM_get_mbyte(addr);
|
||||||
} /* otherwise, try the multibus */
|
} /* otherwise, try the multibus */
|
||||||
|
@ -129,12 +129,12 @@ int32 get_mword(int32 addr)
|
||||||
void put_mbyte(int32 addr, int32 val)
|
void put_mbyte(int32 addr, int32 val)
|
||||||
{
|
{
|
||||||
/* if local EPROM handle it */
|
/* if local EPROM handle it */
|
||||||
if ((i8255_unit.u6 & 0x01) && /* EPROM enabled? */
|
if ((i8255_unit.u5 & 0x01) && /* EPROM enabled? */
|
||||||
(addr >= EPROM_unit.u3) && (addr <= (EPROM_unit.u3 + EPROM_unit.capac))) {
|
(addr >= EPROM_unit.u3) && (addr <= (EPROM_unit.u3 + EPROM_unit.capac))) {
|
||||||
sim_printf("Write to R/O memory address %04X - ignored\n", addr);
|
sim_printf("Write to R/O memory address %04X - ignored\n", addr);
|
||||||
return;
|
return;
|
||||||
} /* if local RAM handle it */
|
} /* if local RAM handle it */
|
||||||
if ((i8255_unit.u6 & 0x02) && /* local RAM enabled? */
|
if ((i8255_unit.u5 & 0x02) && /* local RAM enabled? */
|
||||||
(addr >= RAM_unit.u3) && (addr <= (RAM_unit.u3 + RAM_unit.capac))) {
|
(addr >= RAM_unit.u3) && (addr <= (RAM_unit.u3 + RAM_unit.capac))) {
|
||||||
RAM_put_mbyte(addr, val);
|
RAM_put_mbyte(addr, val);
|
||||||
return;
|
return;
|
||||||
|
|
Loading…
Add table
Reference in a new issue