A simple, lightweight 16-bit text editor written in x86 Assembly language for DOS.
The editor runs in DOSBox (or any 16-bit DOS environment) and supports basic text input, backspacing, and file saving/loading operations.
- Text Input: Type characters directly to fill a 512-byte memory buffer.
- Save on Exit: Automatically saves your work to
OUTPUT.TXTwhen you exit the editor by pressing theESCkey. - Auto-Load: Automatically loads the contents of
OUTPUT.TXTinto the buffer on startup if the file exists. - Basic Controls:
Enter(Carriage Return + Line Feed) to start a new line.Backspaceto delete the character behind the cursor.ESCto save the file and exit to DOS.
dos-text-editor-assembly/
├── README.md
├── .gitignore
├── src/
│ └── editor.asm # Main Assembly source code
└── docs/
├── presentation.pdf # Course project presentation
└── screenshot.PNG # Screenshot of the editor in action
To run this editor, you can use emu8086 (an 8086 microprocessor emulator and editor):
- Open emu8086.
- Click Open and select
src/editor.asm. - Click the Compile or Emulate button (this compiles the code and loads it in the emulator).
- Click Run in the emulator window to launch the editor.