Skip to content

pvtrov/ellipse-animation-asm

Repository files navigation

🌟 Elipse&Animation in Assembly 🌟

✨ ✨ Program written with patience, love and pride ✨ ✨

I am pleased to present my program written in assembler language which draws an ellipse.

This program takes as arguments the size of the ellipse (2 numbers - X size, Y size) in the range from 0 to 200

What my program can do?

Once you run the program and an ellipse is drawn, you can use the arrows to enlarge and reduce the size of the ellipse:
⬆️ - ellipse increases in size on the Y-axis
⬇️ - ellipse shrinks out on Y-axis
➡️ - ellipse increases in size on X-axis
⬅️ - ellipse shrinks on X-axis

Moreover, you can change elipse color using:
1 - 🟣
2 - 🔵
3 - 🟢
4 - 🟡
5 - 🟠
6 - 🔴
7 - ⚪

Also, when you click CTRL + C, elipse switch mode to circle animation! 🌟

To return to elipse mode, click CTRL + E

To close the program, click ESC

What input does the program accept?

The program accepts 2 numbers from 0 to 200 (for X size and Y size). NOTE: the arguments are given when starting the program

Examples:

Input: elipse 20 200
Output: cute purple elipse

Moreover, my program handles exceptions and errors as bad input data:

Input: elipse 20 350
Output: bad input data

Input: elipse 20
Output: bad input data

How to run?

for Linux OS

  1. Install dosbox:
    # For Debian/Ubuntu-based systems:
    sudo apt install dosbox
    # For Fedora/RHEL/CentOS systems:
    sudo dnf install dosbox
    # For Arch-based systems:
    sudo pacman -S dosbox
  2. Run dosbox
    dosbox
  3. Mount C in ellipse-animation-asm directory:
    Z:\> mount c <path-to-directory>
    Z:\> c:
  4. Do this:
    C:\> masm elipse;
    C:\> link elipse;
    C:\> elipse 200 120
    or
    C:\> ml elipse.asm
    C:\> elipse 200 120
  5. Now you admire and play with the elipse 🌝

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published