Skip to content

Useful for learning Assembly basics, university labs, or low-level programming practice.

Notifications You must be signed in to change notification settings

IFTE-13/Assembly-Programs

Repository files navigation

Assembly Language Programs Collection

A collection of assembly language programs covering various concepts and techniques.

Categories

Arithmetic Operations

  • Basic addition and subtraction programs
  • Procedures for arithmetic operations
  • Number exchange program

Binary/Hex/Decimal Conversions

  • Conversion between different number systems
  • Binary to hexadecimal
  • Hexadecimal to decimal

Control Flow

  • Comparison operations with different jump conditions
  • If-else implementations
  • Nested comparisons

Loops

  • Various loop implementations
  • Input handling with loops

Procedures and Functions

  • Examples of procedure implementations
  • Function calling conventions

Stack Operations

  • Push/pop operations
  • Reverse printing using stack

String and Character Operations

  • Character printing and manipulation
  • String operations
  • Case conversion

Binary Operations

  • Binary number handling
  • Counting 0s and 1s in binary numbers

Getting Started

These programs are written for x86 assembly and can be run using an assembler like NASM and an emulator like QEMU or DOSBox.

Prerequisites

  • NASM (Netwide Assembler)
  • Linker (like ld for Linux or link for Windows)
  • DOSBox (for 16-bit programs) or QEMU

Running a Program

  1. Assemble: nasm -f elf filename.asm
  2. Link: ld -m elf_i386 -s -o filename filename.o
  3. Run: ./filename

Contribution

Contributions are welcome! Please feel free to submit pull requests or open issues for any bugs or improvements.

License

This project is licensed under the MIT License - see the LICENSE file for details.

About

Useful for learning Assembly basics, university labs, or low-level programming practice.

Topics

Resources

Stars

Watchers

Forks