include "cpu/68000/include/common.inc" include "cpu/68000/include/handlers/memory_tests.inc" global auto_bg_tile_ram_tests global manual_bg_tile_ram_tests section code ; bg ram seems to have issues with the march test, in that ; it will randomly fail after passing a number of times. This ; has been confirmed on multiple boards. For now we will just ; not do the march test. I'm somewhat assuming there is a ; conflicted between the cpu accessing and the custom chip ; accessing the ram auto_bg_tile_ram_tests: lea d_mt_data, a0 DSUB memory_tests_no_march_handler rts manual_bg_tile_ram_tests: jsr print_passes jsr print_b2_return_to_menu moveq #0, d6 ; passes, memory tests don't touch it .loop_next_pass: SEEK_XY SCREEN_PASSES_VALUE_X, SCREEN_PASSES_Y move.l d6, d0 RSUB print_hex_long jsr auto_bg_tile_ram_tests tst.b d0 bne .test_failed addq.l #1, d6 btst #INPUT_B2_BIT, REG_INPUT beq .test_exit bra .loop_next_pass .test_failed: RSUB error_handler STALL .test_exit: rts section data align 1 d_mt_data: MT_PARAMS BG_TILE_RC_BASE, MT_NULL_ADDRESS_LIST, BG_TILE_RC_SIZE, BG_TILE_RC_ADDR_LINES, BG_TILE_RC_MASK, EC_BG_TILE_RC_BASE, MT_FLAG_NONE