include "cpu/68000/include/common.inc" include "cpu/68000/include/handlers/memory_tests.inc" include "cpu/68000/include/tests/memory.inc" global auto_work_ram_tests_dsub global manual_work_ram_tests section code auto_work_ram_tests_dsub: lea d_mt_data, a0 bra memory_tests_handler_dsub manual_work_ram_tests: jsr print_passes jsr print_b2_return_to_menu DSUB_MODE_PSUB 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 PSUB print_hex_long PSUB auto_work_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: PSUB error_handler STALL .test_exit: ; DSUB_MODE_RSUB moveq #$1c, d7 move.l #SP_INIT_ADDR, sp bra main_menu section data align 1 d_mt_data: MT_PARAMS WORK_RC_BASE, MT_NULL_ADDRESS_LIST, WORK_RC_SIZE, WORK_RC_ADDR_LINES, WORK_RC_MASK, EC_WORK_RC_BASE, MT_FLAG_NONE