This project is a barcode generator implemented in x86 Assembly and C. It encodes a given string into a barcode format and saves it as a .bmp
image file.
The project is an alternative implementation of my earlier RISC-V barcode generator, adapted for x86.
This project was developed between December 2024 - January 2025 as part of my coursework at Warsaw University of Technology.
- Accepts user input as a string.
- Generates Code 128 barcodes.
- Saves the barcode as a bitmap (.bmp) file.
- Implements bitmap manipulation in x86 assembly and C.
- x86 Assembly
- C Programming
- BMP Image Format
- Memory Manipulation & Bitwise Operations
- Compile the program:
make
This uses the make.file script to build the executable.
Run the program: ./barcode_generator <bar_width> "<text_to_encode>"
Example: ./barcode_generator 2 "HELLO123" The generated barcode will be saved as output.bmp in the current directory.
π Project Structure π¦ x86-Barcode-Generator β£ π encode128.asm # x86 Assembly file β£ π program.c # C source code β£ π make.file # Makefile for compiling β£ π README.md # Project documentation β π output.bmp # Generated barcode image (after execution) β‘ Example Output Input: "HELLO123" Output: A barcode representation of "HELLO123" saved as output.bmp This project is open-source and available under the MIT License.