PIC mask is set to 0 when ICW1 is written - Crystal Dream 2 now works.
This commit is contained in:
parent
2457ff050f
commit
57e2a45d83
1 changed files with 2 additions and 2 deletions
|
|
@ -105,7 +105,7 @@ void pic_write(uint16_t addr, uint8_t val, void *priv)
|
|||
{
|
||||
if (val&16) /*ICW1*/
|
||||
{
|
||||
pic.mask=0xFF;
|
||||
pic.mask = 0;
|
||||
pic.mask2=0;
|
||||
pic.icw=1;
|
||||
pic.icw1=val;
|
||||
|
|
@ -222,7 +222,7 @@ void pic2_write(uint16_t addr, uint8_t val, void *priv)
|
|||
{
|
||||
if (val&16) /*ICW1*/
|
||||
{
|
||||
pic2.mask=0xFF;
|
||||
pic2.mask = 0;
|
||||
pic2.mask2=0;
|
||||
pic2.icw=1;
|
||||
pic2.icw1=val;
|
||||
|
|
|
|||
Loading…
Reference in a new issue