A collection of assembly language programs covering various concepts and techniques.
- Basic addition and subtraction programs
- Procedures for arithmetic operations
- Number exchange program
- Conversion between different number systems
- Binary to hexadecimal
- Hexadecimal to decimal
- Comparison operations with different jump conditions
- If-else implementations
- Nested comparisons
- Various loop implementations
- Input handling with loops
- Examples of procedure implementations
- Function calling conventions
- Push/pop operations
- Reverse printing using stack
- Character printing and manipulation
- String operations
- Case conversion
- Binary number handling
- Counting 0s and 1s in binary numbers
These programs are written for x86 assembly and can be run using an assembler like NASM and an emulator like QEMU or DOSBox.
- NASM (Netwide Assembler)
- Linker (like ld for Linux or link for Windows)
- DOSBox (for 16-bit programs) or QEMU
- Assemble:
nasm -f elf filename.asm
- Link:
ld -m elf_i386 -s -o filename filename.o
- Run:
./filename
Contributions are welcome! Please feel free to submit pull requests or open issues for any bugs or improvements.
This project is licensed under the MIT License - see the LICENSE file for details.