ref: a3c2819c5044db35e9c679157ec622f55c3268da
parent: e138750028d99c4a2155b026982e3ccaa85ccd00
author: cinap_lenrek <cinap_lenrek@felloff.net>
date: Mon Dec 4 00:14:31 EST 2017
realemu: fix precedence bug in argconv() format routine (thanks dan cross)
--- a/sys/src/cmd/aux/realemu/fmt.c
+++ b/sys/src/cmd/aux/realemu/fmt.c
@@ -203,9 +203,10 @@
if(i->sreg != RDS)
p += sprint(p, "%cS:", "ECSDFG"[i->sreg - RES]);
if(a->atype == AOb || a->atype == AOv || (i->mod == 0 &&
- (i->alen == 2 && i->rm == 6) ||
- (i->alen == 4 && ((i->rm == 5) ||
- (i->rm == 4 && i->index == 4 && i->base == 5))))){
+ ((i->alen == 2 && i->rm == 6) ||
+ (i->alen == 4 &&
+ ((i->rm == 5) ||
+ (i->rm == 4 && i->index == 4 && i->base == 5)))))){
p += sprint(p, "[%.*lux]", (int)i->alen*2, a->off);
break;
}