From: Svjatoslav Agejenko Date: Tue, 17 Feb 2026 15:10:13 +0000 (+0200) Subject: Add detailed usage comments to `compile.sh`: describe `fasm` check, optional installa... X-Git-Url: http://www2.svjatoslav.eu/gitweb/?a=commitdiff_plain;h=5efe6d3fa5ab9272aa998b0b3a5c97269dc40007;p=fifth.git Add detailed usage comments to `compile.sh`: describe `fasm` check, optional installation, and assembly process --- diff --git a/emulator/compile.sh b/emulator/compile.sh index bf32a8d..3fd978d 100755 --- a/emulator/compile.sh +++ b/emulator/compile.sh @@ -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