From 3a546eb8dd0d448954b2e5b4406872b723c1f857 Mon Sep 17 00:00:00 2001 From: ceriel Date: Tue, 24 Jan 1989 13:51:05 +0000 Subject: [PATCH] be a bit more liberal with prefixes --- mach/i386/as/mach4.c | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) diff --git a/mach/i386/as/mach4.c b/mach/i386/as/mach4.c index b8da7279e..51ac50ebc 100644 --- a/mach/i386/as/mach4.c +++ b/mach/i386/as/mach4.c @@ -7,11 +7,15 @@ */ operation - : { address_long = 1; operand_long = 1; } - prefix oper + : + prefix oper + { address_long = 1; operand_long = 1; } + | prefix1 /* to allow for only prefixes on a line */ ; prefix : /* empty */ - | prefix PREFIX + | prefix1 + ; +prefix1: prefix PREFIX { if ($2 == 0146) operand_long = ! operand_long; if ($2 == 0147) address_long = ! address_long; emit1($2); -- 2.34.1