Add test program for bug 2267. From Mihai.
Fix for bug 2267 where sometimes a FLAG, CNT or SP interrupt could be lost.
Thanks, I am convinced :) I will commit your patch in a moment and credit it to Mihai. I will also add the test program to the test program collection. Since the testbench script currently has no way to specify that a 1581 is needed, it won't be run automatically. Yet, anyway.
CIA: the first FLAG/SDR interrupt after 5000 quiet cycles can be lost
That's an interesting patch, thanks! I ran all tests from the CIA directory of the testbench and they all still pass. However, since the change affects what happens when a FLAG, CNT or SP input line is set from "the outside", those tests probably don't really test this change. Would it be possible to make a small standalone test program, which fails without this patch but succeeds with it? That would be nice to add to the testbench. Although I can imagine that it is hard to make it small and sim...
Check version r46302 or later when the build is available. I fixed this for PET and CBM-II which had essentially the same issue. This will have no effect on VIC-20 or other emus.
Small ctype(3) fixes: use unsigned char arguments.
SDL2: adjust cbm2ui/pet_set_menu_params() to canvas size.