@echo off
:test1
is65 test1
if not errorlevel 1 goto test2
call iswedit isasm.tag test1.x65
goto test1

:test2
is65 test2
if not errorlevel 1 goto test3
call iswedit isasm.tag test2.x65
goto test2

:test3
is65 test3
if not errorlevel 1 goto testlink
call iswedit isasm.tag test3.x65
goto test3

:testlink
islink test1 test2 test3 , test
:end
iswreq test.isx
