Created
February 12, 2023 12:46
Star
You must be signed in to star a gist
Cross-compile assembly code on a Mac so that it is executable on an old PC XT
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
filename=$1 | |
filename="${filename%.*}" | |
echo "Filename without extension is ${filename}" | |
echo -n "Compiling $1 with vasm... " &&\ | |
vasmx86_std -m8086 $1 -Faout -o ${filename}.obj &&\ | |
echo "done." | |
echo -n "Linking $1 with vlink... " &&\ | |
vlink ${filename}.obj -b rawbin1 -o ${filename}.com &&\ | |
echo "done." | |
echo -n "Copying ${filename}.com to DOSBox space... " &&\ | |
cp ${filename}.com ~/retro/pc/dosbox/ | |
echo "done." |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment