mirror of
https://github.com/thrust26/6502-QR-code-generator.git
synced 2024-06-02 22:41:33 +00:00
fixed code organization
This commit is contained in:
parent
58e1551ad7
commit
1e0f4e51f3
|
@ -423,14 +423,7 @@ QR_TOTAL = QR_MAX_DATA + QR_DEGREE ; 44
|
||||||
;-----------------------------------------------------------
|
;-----------------------------------------------------------
|
||||||
MAC _DRAW_FORMAT
|
MAC _DRAW_FORMAT
|
||||||
;-----------------------------------------------------------
|
;-----------------------------------------------------------
|
||||||
IF QR_SINGLE_MASK
|
IF QR_SINGLE_MASK = 0
|
||||||
IF QR_VERSION = 3 || QR_VERSION = 4
|
|
||||||
; invert 1st pixel of 1st copy (bit 0 not set in formats Q and H)
|
|
||||||
ldy #0
|
|
||||||
ldx #QR_SIZE-9
|
|
||||||
jsr InvertPixel
|
|
||||||
ENDIF
|
|
||||||
ELSE
|
|
||||||
.idx = tmpVars
|
.idx = tmpVars
|
||||||
|
|
||||||
ldy #QR_FORMATS-1
|
ldy #QR_FORMATS-1
|
||||||
|
|
|
@ -203,6 +203,13 @@ CODE_LST_SIZE = . - qrCodeLst
|
||||||
sta qrCodeLst,x
|
sta qrCodeLst,x
|
||||||
dex
|
dex
|
||||||
bpl .loopBlack
|
bpl .loopBlack
|
||||||
|
|
||||||
|
IF QR_SINGLE_MASK && (QR_VERSION = 3 || QR_VERSION = 4)
|
||||||
|
; invert 1st pixel of 1st copy (bit 0 not set in formats Q and H)
|
||||||
|
ldy #0
|
||||||
|
ldx #QR_SIZE-9
|
||||||
|
jsr InvertPixel
|
||||||
|
ENDIF
|
||||||
ENDM
|
ENDM
|
||||||
|
|
||||||
include QRCodeGen.inc
|
include QRCodeGen.inc
|
||||||
|
|
Loading…
Reference in New Issue
Block a user