From f68b18f6393c9c0d208608b36e8c0658f2f658d1 Mon Sep 17 00:00:00 2001 From: kaashoek Date: Tue, 31 May 1988 13:41:03 +0000 Subject: [PATCH] *** empty log message *** --- util/ceg/assemble/obj_assemble/assemble.c | 20 ++++++-------------- 1 file changed, 6 insertions(+), 14 deletions(-) diff --git a/util/ceg/assemble/obj_assemble/assemble.c b/util/ceg/assemble/obj_assemble/assemble.c index 4c41a267e..d767236d3 100644 --- a/util/ceg/assemble/obj_assemble/assemble.c +++ b/util/ceg/assemble/obj_assemble/assemble.c @@ -121,21 +121,13 @@ char *parse_operand( ptr, n_ops, instr) *last; ptr = skip_operand( ptr, instr); - if ( *ptr != '\0') { - if ( *ptr == ',') { - for( last=ptr-1; isspace( *last); last--) - ; - *(last+1) = '\0'; - } - else { - error("strange operand format: %s\n", ptr); - /* We don't know what this code does ! */ - *ptr++ = '\0'; - ptr = skip_space( ptr); - if ( *ptr != '\0') ptr++; /* skip ';' */ - } - ptr = skip_space( ptr); + for( last=ptr-1; isspace( *last); last--) + ; + if ( *ptr == ',') { + ptr = skip_space( ptr + 1); } + *(last+1) = '\0'; + process_operand( op, &operand[ n_ops-1]); return( ptr); }