From 4068f0ca5b3a380790794a986897815d8b6a45a8 Mon Sep 17 00:00:00 2001 From: Kartik Agaram Date: Wed, 20 Mar 2019 17:08:43 -0700 Subject: 5011 New convention: compare 'with' for asymmetric comparisons (greater or lesser than), and compare 'and' for symmetric comparisons. Worth making this distinction even though the opcodes are identical; when we compare 'with', the order of operands is significant. --- subx/examples/ex11.subx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'subx/examples/ex11.subx') diff --git a/subx/examples/ex11.subx b/subx/examples/ex11.subx index 5f069ca8..8414351b 100644 --- a/subx/examples/ex11.subx +++ b/subx/examples/ex11.subx @@ -83,7 +83,7 @@ $kernel-string-equal?:loop: 3d/compare-EAX 0/imm32 74/jump-if-equal $kernel-string-equal?:false/disp8 # if (c1 != c2) return false - 39/compare 3/mod/direct 0/rm32/EAX . . . 3/r32/EBX . . # compare EAX with EBX + 39/compare 3/mod/direct 0/rm32/EAX . . . 3/r32/EBX . . # compare EAX and EBX 75/jump-if-not-equal $kernel-string-equal?:false/disp8 # ++i 41/inc-ECX -- cgit 1.4.1-2-gfad0 href='/akspecs/ranger/tree/Makefile?h=v1.5.1&id=3da2e57f2f10b95d136da88e2a42bfd90d40b0f4'>tree commit diff stats
path: root/Makefile
blob: 6c5ed88c94e1f3d97131a7c65354af60647de360 (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
67
68
69
70
71
72
73
74
75
76
77
78