- Required software
# Install NASM assembler
sudo apt update
sudo apt install nasm
# Install DOSBox emulator
sudo apt install dosbox-
Building and Running
- Clone or download the repository
git clone <https://github.com/LOK-PLOK/Text-Editor.git> cd Text-Editor
- Compile the assembly code
nasm -f bin text-editor-main.asm -o editor.com
- Run in DOSbox
# Start DOSBox dosbox # In DOSBox, mount your directory mount c <PATH of ASM FILE>/GITHUB/Text-Editor # for my case mount c /home/lok/GITHUB/Text-Editor c: editor.com
Using the Editor
- Pres
Enterto start editing - Type text normally
- User
Arrow Keysfor navigation - Press
F5to save (creates output.txt) - Press
ESCto exit
Troubleshooting If "command not found": Ensure NASM and DOSBox are installed If compilation fails: Check file permissions If file not found: Verify correct directory mounting