mirror of
https://github.com/netwide-assembler/nasm
synced 2026-08-26 16:23:04 -04:00
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:
parent
010b23ae84
commit
e8a0c32ba7
2 changed files with 5 additions and 0 deletions
|
|
@ -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
|
||||
>>
|
||||
|
|
|
|||
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue