This project implements an Assembly calculator using emu8086. The calculator can perform arithmetic and bitwise operations on 16-bit unsigned integers.
The calculator supports the following operations:
- Addition
- Subtraction
- Multiplication
- Division
- Exponentiation
- Factorial
- Bitwise AND
- Bitwise OR
- Square root
- Supported numbers: 16-bit unsigned integers (0–65,535).
- Input: The program uses the US keyboard layout.
- If you are using a different layout, refer to a US keyboard layout chart or modify the operation selection code block.
- emu8086: An 8086 emulator required to run the Assembly code.
- US keyboard layout (or code modifications to accommodate a different layout).
-
Keyboard Layout Configuration:
- Make sure your keyboard layout is set to "US" to select operations correctly.
- Alternatively, you can modify the
SCELTA OPERAZIONE(operation selection) code block in theASMCalculator.asmfile to match your keyboard layout.
-
Compilation and Execution:
- Open the
ASMCalculator.asmfile in emu8086. - Compile the source code.
- Run the program directly in emu8086.
- Open the
-
Operation Selection:
- Follow the on-screen instructions to select the desired operation and enter the input numbers.
-
Precision:
- Division uses integer arithmetic (decimal numbers are not supported).
- The square root operation returns only the integer part.
-
Overflow:
- The program does not automatically handle overflow. Entering numbers that are too large may produce incorrect results.
To change the program's behavior, you can:
- Modify the input mappings in the
SCELTA OPERAZIONEcode block to match your keyboard layout. - Add new operations following the existing code style.
This project is distributed under the MIT License. See the LICENSE file (if included) for more details.