This project implements a lightweight assembly language interpreter written in Python. It reads a text file containing simplified assembly instructions and simulates the execution of each instruction by updating registers and flags accordingly. The results are saved in a separate output file.
- Five core instructions:
ADD,SUB,MOV,AND,OR - Register support:
EAX,EBX,ECX,EDX+ partial registers (AX,AH,AL, etc.) - Flags supported:
CarryZeroNegativeOverflow
- Input: free-form, case-insensitive
.txtfile (syntax assumed correct) - Output: final values of registers and flags saved to output file
- Handles negative numbers and mixed formatting gracefully