From 9f07cea8f1501eb603847b91751d556f6c121dd1 Mon Sep 17 00:00:00 2001 From: Kartik Agaram Date: Sun, 17 May 2020 22:50:58 -0700 Subject: mu.subx: 10/50 top-level tests passing --- apps/mu.subx | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/apps/mu.subx b/apps/mu.subx index eb8fd1f9..3574bfa2 100644 --- a/apps/mu.subx +++ b/apps/mu.subx @@ -5797,6 +5797,7 @@ lookup-or-define-var: # name: (addr slice), vars: (addr stack (handle var)), fn # if name is one of fn's outputs, return it { (find-in-function-outputs *(ebp+0x10) *(ebp+8) *(ebp+0x14)) + 8b/-> *(ebp+0x14) 0/r32/eax 81 7/subop/compare *eax 0/imm32 # otherwise abort 0f 84/jump-if-= $lookup-var:abort/disp32 @@ -5819,7 +5820,7 @@ find-in-function-outputs: # fn: (addr function), name: (addr slice), out: (addr 51/push-ecx # var curr/ecx: (addr list var) = lookup(fn->outputs) 8b/-> *(ebp+8) 1/r32/ecx - (lookup *(ecx+0x10) *(ecx+0x14)) # => eax + (lookup *(ecx+0x10) *(ecx+0x14)) # Function-outputs Function-outputs => eax 89/<- %ecx 0/r32/eax # while curr != null { @@ -5836,7 +5837,7 @@ find-in-function-outputs: # fn: (addr function), name: (addr slice), out: (addr 74/jump-if-= break/disp8 # var edi = out 57/push-edi - 89/<- *(ebp+0x10) 7/r32/edi + 8b/-> *(ebp+0x10) 7/r32/edi # *out = curr->value 8b/-> *ecx 0/r32/eax 89/<- *edi 0/r32/eax -- cgit 1.4.1-2-gfad0 kartik/mu/log/html/025trace.cc.html?h=hlt'>log tree commit diff stats
path: root/html/025trace.cc.html
blob: 5ee0e70b724d970679bc80ffee8694f0d39d495f (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66