diff --git a/test/atari2600-common/test.cmake b/test/atari2600-common/test.cmake index 83d85699a..e9188d679 100644 --- a/test/atari2600-common/test.cmake +++ b/test/atari2600-common/test.cmake @@ -8,7 +8,6 @@ target_include_directories(test-lib-emutest BEFORE PUBLIC ${CMAKE_CURRENT_SOURCE_DIR}/../atari2600-common/) add_vcs_test(minimal ../atari2600-common) -add_vcs_test(zeropage-max ../atari2600-common) add_vcs_test(frame-simple ../atari2600-common) set_property(TEST test-frame-simple PROPERTY ENVIRONMENT EMUTEST_FB_CRC_PASS=3714305448) diff --git a/test/atari2600-common/zeropage-max.c b/test/atari2600-common/zeropage-max.c deleted file mode 100644 index a36cbaeab..000000000 --- a/test/atari2600-common/zeropage-max.c +++ /dev/null @@ -1,40 +0,0 @@ -#include -#include -#include - -#include "vcslib.h" -#include "test-lib-vcs.h" - -// 128 bytes PIA RAM -// 32 bytes for registers -// 16 bytes for stack -// 8 bytes for test result -char buf[128 - 32 - 16 - 8]; - -void test_recurse(int n) { - if (n == 0) { - return; - } - buf[0]++; - test_recurse(n - 1); - buf[0]--; -} - -void test_zp_max() { - // set memory - memset(buf, 0x55, sizeof(buf)); - // test 10 layers of recursion - test_recurse(10); - // compare memory - for (int i = 0; i < sizeof(buf); i++) { - if (buf[i] != 0x55) { - test_failed(); - } - } -} - -int main(void) { - test_zp_max(); - test_passed(); - return 0; -}