Files
templates/Protect/PM_INT8.9/MK2.BAT
Mark Zheleznyakov be2b9502d1 init
2024-09-07 08:49:36 +03:00

43 lines
1.3 KiB
Batchfile
Executable File
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

@ECHO OFF
ECHO Š®¬¯¨«ïæ¨ï ¯à®£à ¬¬ë ¤«ï à ¡®âë ¢ Protected Mode >> %2
ECHO ¢å®¤­®© ä ©« %1.asm >> %2
ECHO ___________________ >> %2
ECHO ‘®§¤ ­¨¥ obj ä ©« ... >> %2
ECHO tasm /m2 %1.asm >> %2
tasm /m2 %1.asm >> %2 >> %2
if errorlevel = 1 goto asmerror
ECHO obj ä ©« ãᯥ譮 á®§¤ ­ >> %2
ECHO ___________________ >> %2
ECHO >> %2
ECHO ‘®§¤ ­¨¥ exe ä ©« ... >> %2
ECHO tlink /x /3 %1.obj >> %2
tlink /x /3 %1.obj >> %2
if errorlevel = 1 goto exeerror
ECHO exe ä ©« ãᯥ譮 á®§¤ ­ >> %2
goto okend
:exeerror
ECHO ___________________ >> %2
ECHO Žè¨¡ª  á®§¤ ­¨ï exe ä ©« , ¢®§¬®¦­® ä ©« >> %2
ECHO %1.obj á®§¤ ­ á ®è¨¡ª ¬¨ >> %2
goto errorend
:asmerror
ECHO Žè¨¡ª  á®§¤ ­¨ï obj ä ©« , ¢®§¬®¦­® ¢ ä ©«¥ >> %2
ECHO %1.asm ®¡­ à㦥­ë ®è¨¡ª¨ >> %2
goto errorend
:errorend
ECHO ___________________ >> %2
ECHO ¯à®æ¥áᥠª®¬¯¨«ï樨 ®¡­ à㦥­ë ®è¨¡ª¨, >> %2
ECHO á®§¤ ­¨¥ § ¯ã᪠¥¬®£®(exe) ä ©«  ­¥¢®§¬®¦­®. >> %2
goto end
:okend
ECHO ___________________ >> %2
ECHO Š®¬¯¨«ïæ¨ï ¯à®è«  ãᯥ譮 >> %2
ECHO ‘®§¤ ­ ä ©« %1.exe >> %2
:end
@type %2