OpenCores
Issue List
INIR doesn't loop #1
Closed Tairus opened this issue almost 9 years ago
Tairus commented almost 9 years ago

INIR instruction acts like INI. But it should repeat IN instruction till B=0.

Tairus commented almost 9 years ago

OTIR instruction is also affected.

I didn't check INDR and OTDR, but i think they are affected too.

All 4 instructions are well documented.

gdevic commented almost 9 years ago

Project has been updated with a fix for this issue.

gdevic closed this almost 9 years ago
gdevic commented almost 9 years ago

This is now fixed.

The issue was that those 2 instruction types would use the same condition as other repeat instructions (ldir, cpir) which was wrong since inir/otir should not use a signal that BC==1 from the address (de)incrementer but only ZF==1.

I added a new condition macro just for inir/otir and re-run the same manual asm tests using GENS and MONS which now pass as expected.


Assignee
No one
Labels
Bug