1
0
mirror of https://github.com/weiju/amiga-stuff synced 2025-12-08 14:58:33 +00:00

added strobing of copjmp1 after setting list

not strobing copjmp1 can lead to compatibility issues
This commit is contained in:
Wei-ju Wu
2016-09-21 22:06:02 -07:00
parent b31f5a40aa
commit 1235d15acb
3 changed files with 15 additions and 0 deletions

View File

@ -27,6 +27,7 @@
* A simple setup to display a playfield with a depth of 1 bit.
*/
extern struct Custom custom;
char VERSION_STRING[] = "\0$VER: playfield1 1.0 (21.09.2016)\0";
static UWORD __chip coplist[] = {
COP_MOVE(BPL1PTH, 0),
@ -81,6 +82,11 @@ int main(int argc, char **argv)
// and point to the copper list
custom.cop1lc = (ULONG) coplist;
// strobe the COPJMP1 register to make sure the system is using
// copper list 1 (I found out that leaving this out can lead to
// strange effects on an emulated 4000 system)
custom.copjmp1 = 1;
waitmouse();
reset_display();