write an assembly language program that can convert binary to text and text to b
ID: 3769320 • Letter: W
Question
write an assembly language program that can convert binary to text and text to binary. in base64 algorithm. compile/runnable in TASM/dosbox.
Explanation / Answer
@ECHO OFF SETLOCAL enableextensions enabledelayedexpansion rem adjust the following lines to your needs rem path to tasmx.exe and tlink.exe PATH C:Turbo.DOSTASM.5BIN;%PATH% rem this directory and subdirectories PUSHD C:TMPTasm FOR /R %%i IN (*.asm) DO ( SET P=%%~psni DEL !P!.obj !P!.exe !P!.com !P!.map 2>NUL ECHO !P! tasmx.exe /t !P!,!P!.obj >NUL IF EXIST !P!.obj ( tlink.exe /x !P! >NUL ) ) POPD @ECHO OFF SETLOCAL enableextensions enabledelayedexpansion rem adjust the following lines to your needs rem this directory and subdirectories PUSHD C:TMPTasm >dosbox.bat echo @ECHO OFF >>dosbox.bat echo IF EXIST X:NUL mount -u X ^>NUL >>dosbox.bat echo MOUNT X X: ^>NUL >>dosbox.bat echo X: FOR /R %%i IN (*.asm) DO ( SET P=%%~sni SET D=%%~psi DEL !P!.obj !P!.exe !P!.com !P!.map 2>NUL ECHO !P! >>dosbox.bat echo CD !D! >>dosbox.bat echo tasm.exe /t !P! >>dosbox.bat echo IF EXIST !P!.obj tlink.exe /x !P! ) POPD
Related Questions
Navigate
Integrity-first tutoring: explanations and feedback only — we do not complete graded work. Learn more.