Projects > MasmBasic & the RichMasm IDE
QR code generator
jj2007:
Just for fun, attached a QR code generator - 72 lines of purest Assembly :biggrin:
You can supply a URL via the commandline, or you paste it in the edit box and hit Enter. Right-click into the image to save it to disk. I've tested it with Scanner QR for Android, and it works like a charm.
jack:
impressive jj :smiley:
jj2007:
Version 2, slightly improved so that longer text can be displayed: Window size and resolution will adapt to the amount of information needed.
TimoVJL:
Just have to test it :azn:
jj2007:
--- Quote from: TimoVJL on November 24, 2022, 02:48:14 AM ---Just have to test it :azn:
--- End quote ---
What is that tiny lousy website, Timo? :biggrin:
Attached version 3 of the QR code generator; remember to right-click into the image. In case you can't see the *.asc source because you don't have WordPad or RichMasm on your machine, here is the source in plain text *.asm:
Btw with Jack's DLL there is a 2996 character limit (the source above has 2906 chars). There are several sizes reported on the web:
--- Quote ---Model 1:
The original QR Code, a code capable of coding 1,167 numerals with its maximum version being 14 (73 x 73 modules)
Model 2
This code can encode up to 7,089 numerals with its maximum version being 40 (177 x 177 modules).
--- End quote ---
https://blinq.me/blog/what-size-should-a-qr-code-be
--- Quote ---A QR code can store up to 4,296 alphanumeric characters of arbitrary text. The text can be anything from contact information, a URL, or even a telephone number.
--- End quote ---
Navigation
[0] Message Index
[#] Next page
Go to full version