MaskedWrite: allow A

This commit is contained in:
matthias@arch 2024-01-11 20:51:28 +01:00
parent 4e76be17ad
commit 9867e4a119

View File

@ -79,7 +79,9 @@ INCLUDE_UTILITY = 1
;; @TODO optimize when immediate is used ;; @TODO optimize when immediate is used
;;******************************************************************************** ;;********************************************************************************
.macro MaskedWrite addr,value,mask .macro MaskedWrite addr,value,mask
.if .not .match(value, A)
lda value lda value
.endif
eor addr eor addr
and mask and mask
eor addr eor addr