mirror of
https://github.com/thrust26/6502-QR-code-generator.git
synced 2025-01-14 14:33:36 +00:00
178 lines
5.2 KiB
PHP
178 lines
5.2 KiB
PHP
BlackGfx
|
|
LeftBlack
|
|
;GRP0LBlack
|
|
.byte %11111111 ; constant, bit 0 of 2nd format copy, level
|
|
.byte %11111111 ; constant, bit 1 of 2nd format copy, level
|
|
.byte %11111111 ; constant, bit 2 of 2nd format copy, pattern
|
|
.byte %11111111 ; constant, bit 3 of 2nd format copy, pattern
|
|
.byte %11111111 ; constant, bit 4 of 2nd format copy, pattern
|
|
.byte %11111111 ; constant, bit 5 of 2nd format copy, ECC
|
|
.byte %11111111 ; constant, bit 6 of 2nd format copy, ECC
|
|
.byte %11111111 ; constant, 1 (dark module)
|
|
.byte %00000100
|
|
.byte %00000100
|
|
.byte %00000100
|
|
.byte %00000100
|
|
.byte %00000100
|
|
.byte %00000100
|
|
.byte %00000100
|
|
.byte %00000100
|
|
.byte %11111111 ; constant, bits 1..7 of 1st format copy
|
|
.byte %11111111 ; constant, bit 8 of 1st format copy, ECC
|
|
.byte %11111111 ; constant, 1 (timing bit)
|
|
.byte %11111111 ; constant, bit 9 of 1st format copy, ECC
|
|
.byte %11111111 ; constant, bit 10 of 1st format copy, ECC
|
|
.byte %11111111 ; constant, bit 11 of 1st format copy, ECC
|
|
.byte %11111111 ; constant, bit 12 of 1st format copy, ECC
|
|
.byte %11111111 ; constant, bit 13 of 1st format copy, ECC
|
|
.byte %11111111 ; constant, bit 14 of 1st format copy, ECC
|
|
;FirstBlack
|
|
.byte %00000000
|
|
GRP1Black
|
|
.byte %00000000
|
|
.byte %00000000
|
|
.byte %00000000
|
|
.byte %00000000
|
|
.byte %00000001
|
|
.byte %00000001
|
|
.byte %00000001
|
|
.byte %00000001
|
|
.byte %00000001
|
|
.byte %00000000
|
|
.byte %00000000
|
|
.byte %00000000
|
|
.byte %00000000
|
|
.byte %00000000
|
|
.byte %00000000
|
|
.byte %00000000
|
|
.byte %00000000
|
|
.byte %00000000
|
|
.byte %11111111
|
|
.byte %00000000
|
|
.byte %00000000
|
|
.byte %00000000
|
|
.byte %00000000
|
|
.byte %00000000
|
|
.byte %00000000
|
|
GRP0RBlack
|
|
.byte %00000000
|
|
.byte %00000000
|
|
.byte %00000000
|
|
.byte %00000000
|
|
.byte %11110000
|
|
.byte %11110000
|
|
.byte %11110000
|
|
.byte %11110000
|
|
.byte %11110000
|
|
.byte %00000000
|
|
.byte %00000000
|
|
.byte %00000000
|
|
.byte %00000000
|
|
.byte %00000000
|
|
.byte %00000000
|
|
.byte %00000000
|
|
.byte %11111111 ; constant, bits 7..14 of 2nd format copy
|
|
.byte %11111111 ; constant
|
|
.byte %11111111 ; constant
|
|
.byte %11111111 ; constant
|
|
.byte %11111111 ; constant
|
|
.byte %11111111 ; constant
|
|
.byte %11111111 ; constant
|
|
.byte %11111111 ; constant
|
|
.byte %11111111 ; constant
|
|
|
|
EorGfx
|
|
;GRP0LEor
|
|
.byte %00000011 ; constant, bit 0 of 2nd format copy, level
|
|
.byte %11111011 ; constant, bit 1 of 2nd format copy, level
|
|
.byte %10001011 ; constant, bit 2 of 2nd format copy, pattern
|
|
.byte %10001011 ; constant, bit 3 of 2nd format copy, pattern
|
|
.byte %10001011 ; constant, bit 4 of 2nd format copy, pattern
|
|
.byte %11111011 ; constant, bit 5 of 2nd format copy, ECC
|
|
.byte %00000011 ; constant, bit 6 of 2nd format copy, ECC
|
|
.byte %11111110 ; constant, 1 (dark module)
|
|
.byte %00000000
|
|
.byte %00000100
|
|
.byte %00000000
|
|
.byte %00000100
|
|
.byte %00000000
|
|
.byte %00000100
|
|
.byte %00000000
|
|
.byte %00000100
|
|
.byte %11111011 ; constant, bits 1..7 of 1st format copy
|
|
.byte %11111111 ; constant, bit 8 of 1st format copy, ECC
|
|
.byte %00000010 ; constant, 1 (timing bit)
|
|
.byte %11111011 ; constant, bit 9 of 1st format copy, ECC
|
|
.byte %10001011 ; constant, bit 10 of 1st format copy, ECC
|
|
.byte %10001011 ; constant, bit 11 of 1st format copy, ECC
|
|
.byte %10001011 ; constant, bit 12 of 1st format copy, ECC
|
|
.byte %11111011 ; constant, bit 13 of 1st format copy, ECC
|
|
.byte %00000011 ; constant, bit 14 of 1st format copy, ECC
|
|
;FirstEor
|
|
.byte %00000000
|
|
;GRP1Eor
|
|
.byte %00000000
|
|
.byte %00000000
|
|
.byte %00000000
|
|
.byte %00000000
|
|
.byte %00000000
|
|
.byte %00000000
|
|
.byte %00000000
|
|
.byte %00000000
|
|
.byte %00000000
|
|
.byte %00000000
|
|
.byte %00000000
|
|
.byte %00000000
|
|
.byte %00000000
|
|
.byte %00000000
|
|
.byte %00000000
|
|
.byte %00000000
|
|
.byte %00000000
|
|
.byte %00000000
|
|
.byte %10101010
|
|
.byte %00000000
|
|
.byte %00000000
|
|
.byte %00000000
|
|
.byte %00000000
|
|
.byte %00000000
|
|
.byte %00000000
|
|
;GRP0REor
|
|
.byte %00000000
|
|
.byte %00000000
|
|
.byte %00000000
|
|
.byte %00000000
|
|
.byte %00000000
|
|
.byte %11100000
|
|
.byte %10100000
|
|
.byte %11100000
|
|
.byte %00000000
|
|
.byte %00000000
|
|
.byte %00000000
|
|
.byte %00000000
|
|
.byte %00000000
|
|
.byte %00000000
|
|
.byte %00000000
|
|
.byte %00000000
|
|
.byte %11111111 ; constant, bits 7..14 of 2nd format copy
|
|
.byte %11111111 ; constant
|
|
.byte %10000000 ; constant
|
|
.byte %10111110 ; constant
|
|
.byte %10100010 ; constant
|
|
.byte %10100010 ; constant
|
|
.byte %10100010 ; constant
|
|
.byte %10111110 ; constant
|
|
.byte %10000000 ; constant
|
|
|
|
FirstIdxTbl ; for 25 pixel
|
|
ds 7, 0
|
|
.byte $fe
|
|
ds 7, 0
|
|
.byte $01
|
|
ds 7, 0
|
|
IF QR_LEVEL = 0 || QR_LEVEL = 1
|
|
.byte $bf ; 1st format bit is 1
|
|
ELSE
|
|
.byte $3f ; 1st format bit is 0
|
|
ENDIF
|
|
|