fixed code organization

This commit is contained in:
thrust26 2021-04-11 17:47:58 +02:00
parent 58e1551ad7
commit 1e0f4e51f3
2 changed files with 8 additions and 8 deletions

View File

@ -423,14 +423,7 @@ QR_TOTAL = QR_MAX_DATA + QR_DEGREE ; 44
;-----------------------------------------------------------
MAC _DRAW_FORMAT
;-----------------------------------------------------------
IF QR_SINGLE_MASK
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
IF QR_SINGLE_MASK = 0
.idx = tmpVars
ldy #QR_FORMATS-1

View File

@ -203,6 +203,13 @@ CODE_LST_SIZE = . - qrCodeLst
sta qrCodeLst,x
dex
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
include QRCodeGen.inc