Project for my university course in which the task was to build a program in MIPS assembly that will encode a provided string in form of a barcode. The program had to generate a bitmap (.bmp file) containing a correctly encoded barcode (according to code39 specification) based on a provided string of characters and the pixel width of the narrow bar.
In order to run the program, you need to follow these instructions:
- Obtain the Mars simulator (an integrated environment for running MIPS assembly written in java) available here.
- Run the mars simulator.
- Open the file
src/barcode_generation.asm
. - Compile and run.
- (Alternatively, instead of running the program in gui mode, one may run it through the console by issuing command
java -jar Mars4_5.jar src/barcode_generation.asm
). - Generated file will be located in
out/output.bmp
.