https://github.com/thespectrez/asm-fizzbuzz
Fizzbuzz implementation in x86-64 NASM assembly for Linux
https://github.com/thespectrez/asm-fizzbuzz
assembly fizzbuzz fizzbuzz-asm
Last synced: 12 months ago
JSON representation
Fizzbuzz implementation in x86-64 NASM assembly for Linux
- Host: GitHub
- URL: https://github.com/thespectrez/asm-fizzbuzz
- Owner: TheSpectreZ
- License: apache-2.0
- Created: 2025-05-29T16:07:40.000Z (about 1 year ago)
- Default Branch: master
- Last Pushed: 2025-05-29T18:05:31.000Z (about 1 year ago)
- Last Synced: 2025-06-09T07:02:39.707Z (about 1 year ago)
- Topics: assembly, fizzbuzz, fizzbuzz-asm
- Language: Assembly
- Homepage:
- Size: 8.79 KB
- Stars: 1
- Watchers: 0
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# asm-fizzbuzz
A FizzBuzz implementation in x86-64 NASM assembly for Linux.
## What's This?
This is FizzBuzz, but written entirely in assembly. It prints numbers in a range, substituting:
- `Fizz` for multiples of 3
- `Buzz` for multiples of 5
- `FizzBuzz` for multiples of both 3 and 5
No high-level languages, no standard libraries—just raw assembly and Linux syscalls.
## Install NASM and build tools
Open your terminal (in WSL or Linux) and run:
```bash
sudo apt update
sudo apt install nasm build-essential
```
## How to Run
Clone the repo and execute the build script:
```bash
git clone https://github.com/TheSpectreZ/asm-fizzbuzz.git
cd asm-fizzbuzz
./run.sh fizzbuzz.asm
```
### Note
Tested and working in **Windows WSL (Ubuntu)**. Should also work on regular Linux if you have the same tools.
## Sample Output
```text
Enter Start Number: 8
Enter End Number: 16
8
Fizz
Buzz
11
Fizz
13
14
FizzBuzz
16
```