DFV: allow {dfv=pf} as an alias for {dfv=cf}; EQU {dfv}

PF and CF are always set to the same value; allow the programmer to
specify either or both.

Allow EQU to take a {dfv} expression without needing parens.

Signed-off-by: H. Peter Anvin (Intel) <hpa@zytor.com>
This commit is contained in:
H. Peter Anvin 2025-09-23 11:56:31 -07:00
parent 010b23ae84
commit e8a0c32ba7
2 changed files with 5 additions and 0 deletions

View file

@ -190,6 +190,10 @@ dfv=zf
dfv=sf
dfv=of
# cf == pf
% TOKEN_BRCCONST, IF_DFV, TFLAG_BRC | TFLAG_ORBIT, DFV_CF
dfv=pf
# Multi-character operators. Used in ppscan().
% TOKEN_SHR, 0, 0, 0
>>

View file

@ -70,6 +70,7 @@ RESZ imm [ resb] PSEUDO
INCBIN ignore ignore PSEUDO
EQU imm ignore PSEUDO
EQU imm:imm ignore PSEUDO
EQU spec4 ignore PSEUDO,DFV
;# No operation
; In 64-bit mode NOP (90) is technically always 64 bits, but allow "o64 nop" to generate 48 90