int speccyboot_unittest( void ) { int r = 0; speccyboot_page(); r += unittests_assert_8k_page( 0x0000, speccyboot_memory_source, 0 ); r += unittests_assert_8k_page( 0x2000, memory_source_rom, 0 ); r += unittests_assert_16k_ram_page( 0x4000, 5 ); r += unittests_assert_16k_ram_page( 0x8000, 2 ); r += unittests_assert_16k_ram_page( 0xc000, 0 ); speccyboot_unpage(); r += unittests_paging_test_48( 2 ); return r; }
int didaktik80_unittest( void ) { int r = 0; didaktik80_page(); r += unittests_assert_8k_page( 0x0000, didaktik_rom_memory_source, 0 ); r += unittests_assert_4k_page( 0x2000, didaktik_rom_memory_source, 0 ); r += unittests_assert_2k_page( 0x3000, didaktik_rom_memory_source, 0 ); r += unittests_assert_2k_page( 0x3800, didaktik_ram_memory_source, 0 ); r += unittests_assert_16k_ram_page( 0x4000, 5 ); r += unittests_assert_16k_ram_page( 0x8000, 2 ); r += unittests_assert_16k_ram_page( 0xc000, 0 ); didaktik80_unpage(); r += unittests_paging_test_48( 2 ); return r; }
int speccyboot_unittest( void ) { int r = 0; speccyboot_rom_active = 1; speccyboot_memory_map(); r += unittests_assert_8k_page( 0x0000, speccyboot_memory_source, 0 ); r += unittests_assert_8k_page( 0x2000, memory_source_rom, 0 ); r += unittests_assert_16k_ram_page( 0x4000, 5 ); r += unittests_assert_16k_ram_page( 0x8000, 2 ); r += unittests_assert_16k_ram_page( 0xc000, 0 ); speccyboot_rom_active = 0; machine_current->memory_map(); r += unittests_paging_test_48( 2 ); return r; }