diff --git a/QRCodeGen.inc b/QRCodeGen.inc index aa0f106..bab0be8 100644 --- a/QRCodeGen.inc +++ b/QRCodeGen.inc @@ -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 diff --git a/QRCodeGenDemo.asm b/QRCodeGenDemo.asm index 0fe23b0..ee9fa27 100644 --- a/QRCodeGenDemo.asm +++ b/QRCodeGenDemo.asm @@ -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