about summary refs log tree commit diff stats
path: root/apps
diff options
context:
space:
mode:
authorKartik Agaram <vc@akkartik.com>2020-10-03 11:40:26 -0700
committerKartik Agaram <vc@akkartik.com>2020-10-03 11:40:26 -0700
commit8719ea906d40d6dd4807c6be39b1b036f83dc833 (patch)
tree07842a6a7efb47fd116a3481a1d2abdf3f80693f /apps
parentac608bc72eb5bde1c7d84e36d83a1e15357fe16d (diff)
downloadmu-8719ea906d40d6dd4807c6be39b1b036f83dc833.tar.gz
6930
Diffstat (limited to 'apps')
-rwxr-xr-xapps/mubin418489 -> 418476 bytes
-rw-r--r--apps/mu.subx6
2 files changed, 2 insertions, 4 deletions
diff --git a/apps/mu b/apps/mu
index eabf8405..0f155999 100755
--- a/apps/mu
+++ b/apps/mu
Binary files differdiff --git a/apps/mu.subx b/apps/mu.subx
index 5b8418d9..b0ddfdaa 100644
--- a/apps/mu.subx
+++ b/apps/mu.subx
@@ -10911,15 +10911,13 @@ $lookup-var-helper:return:
       # 'name' not yet found; update var-in-reg if v in register
       # . var vr/eax: (addr array byte) = lookup(v->register)
       (lookup *(ecx+0x18) *(ecx+0x1c))  # Var-register Var-register => eax
-      # . if (var == 0) continue
+      # . if (vr == 0) continue
       3d/compare-eax-and 0/imm32
       74/jump-if-= $lookup-var-helper:continue/disp8
       # . var reg/eax: int = get(Registers, vr)
       (get Mu-registers %eax 0xc "Mu-registers")  # => eax
       8b/-> *eax 0/r32/eax
-      # . if (var-in-reg[reg] == 0) var-in-reg[reg] = v
-      81 7/subop/compare *(edi+eax<<2) 0/imm32
-      75/jump-if-!= $lookup-var-helper:continue/disp8
+      # . var-in-reg[reg] = v
       89/<- *(edi+eax<<2) 1/r32/ecx
 $lookup-var-helper:continue:
       # curr -= 12