This project is an 8086 assembly application for DOS that ports Nayuki Project QR code generation library and renders the result using CGA graphics output.
It is my second attempt to port this lib to 8088 Code. This Assembler Version is roughly 10 times faster than my previous Version which was a C++ Port. Performance tested on an NEC V20 with 9.7Mhz (NUXT 2.0). It went from 10-12s C++ to 1 - 1.5s ASM for smaller texts.
A precompiled MSDOS Executable qrcode.exe is provided. If I am not mistaken MSDOS 2+ is the minimum required Version. CPU requirement is a 8086 or Compatible.
Usage: qrcode.exe "<text>"
Options:
<text> The message to encode in the QR Code.
Examples:
qrcode.exe "Hello, world!"
qrcode.exe "WIFI:T:WPA;S:examplenet;P:secret;;"Run the build from this directory:
makeUseful targets:
make buildbuildsQRCODE.EXE.make testbuilds and runs the test executables.make cleanremoves build artifacts.make -DRELEASE buildbuilds without debug flags.
Requirements:
- DOS environment (real DOS or DOSBox-compatible setup)
- Turbo Assembler (TASM) 2.0
- Turbo Linker (TLINK) 3.0
- Turbo Librarian (TLIB)
- Borland MAKE 3.0
Project layout:
QRCODE.ASM: application entry pointlib/: QR encoding and support modulestest/: module-level testsMAKEFILE: Borland MAKE build script
This project is licensed under the MIT License. See: LICENSE
The QR encoding logic in this project is based on:
- Project Nayuki: QR Code generator library
- https://www.nayuki.io/page/qr-code-generator-library
- https://github.com/nayuki/QR-Code-generator
Attribution:
- Copyright (c) Project Nayuki
- License: MIT
