2 ** testprogram for ANTIC instructions as defined in "_antic.h"
4 ** 23-Feb-2017, Christian Krueger
12 // code is only for testing purposes, as screen and display list are not aligned
15 unsigned char DummyScreen[400];
28 DL_HSCROL(DL_CHR40x10x1),
29 DL_VSCROL(DL_CHR40x8x4),
31 DL_LMS(DL_HSCROL(DL_VSCROL(DL_DLI(DL_CHR20x8x2)))),
46 unsigned char dlend = 0;
52 // unfortunately "sizeof()" doesn't work with void data
53 // (Error: Size of data type is unknown)
54 // so we trick with the adresses at front and behind...
56 int returnValue = (((unsigned int)&dlend-(unsigned int)&DisplayList) != 28); // assure only one byte per instruction!
60 cputs("Test FAILED!");
62 cputs("Test passed.");
64 cputs("\n\rHit any key to exit...");