Add detailed usage comments to `compile.sh`: describe `fasm` check, optional installa...
authorSvjatoslav Agejenko <svjatoslav@svjatoslav.eu>
Tue, 17 Feb 2026 15:10:13 +0000 (17:10 +0200)
committerSvjatoslav Agejenko <svjatoslav@svjatoslav.eu>
Tue, 17 Feb 2026 15:10:13 +0000 (17:10 +0200)
emulator/compile.sh

index bf32a8d..3fd978d 100755 (executable)
@@ -1,5 +1,10 @@
 #!/bin/bash
 
+# Compile the Fifth virtual machine emulator using FASM (Flat Assembler).
+# This script checks whether fasm is installed and offers to install it
+# via apt-get if it is missing, then assembles emulator.asm into the
+# DOS COM binary (emulator.com).
+
 if ! command -v fasm &> /dev/null; then
     echo "fasm (flat assembler) is not installed."
     read -p "Would you like to install it? (y/n): " choice
@@ -15,4 +20,4 @@ if ! command -v fasm &> /dev/null; then
     fi
 fi
 
-fasm emulator.asm
\ No newline at end of file
+fasm emulator.asm