From 6070c23e5e1c60d3bb169e43bddfa59b1d322427 Mon Sep 17 00:00:00 2001 From: Kartik Agaram Date: Thu, 16 Jan 2020 18:31:12 -0800 Subject: 5897 - rename comparison instructions Signed and unsigned don't quite capture the essence of what the different combinations of x86 flags are doing for SubX. The crucial distinction is that one set of comparison operators is for integers and the second is for addresses. --- html/062write-stream.subx.html | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'html/062write-stream.subx.html') diff --git a/html/062write-stream.subx.html b/html/062write-stream.subx.html index 2b32ebc1..f698d844 100644 --- a/html/062write-stream.subx.html +++ b/html/062write-stream.subx.html @@ -82,7 +82,7 @@ if ('onhashchange' in window) { 21 89/copy 3/mod/direct 5/rm32/ebp . . . 4/r32/esp . . # copy esp to ebp 22 # if (f < 0x08000000) _write-stream(f, s), return # f can't be a user-mode address, so treat it as a kernel file descriptor 23 81 7/subop/compare 1/mod/*+disp8 5/rm32/ebp . . . . 8/disp8 0x08000000/imm32 # compare *(ebp+8) - 24 73/jump-if-greater-unsigned-or-equal $write-stream:fake/disp8 + 24 73/jump-if-addr>= $write-stream:fake/disp8 25 # . . push args 26 ff 6/subop/push 1/mod/*+disp8 5/rm32/ebp . . . . 0xc/disp8 . # push *(ebp+12) 27 ff 6/subop/push 1/mod/*+disp8 5/rm32/ebp . . . . 8/disp8 . # push *(ebp+8) @@ -165,7 +165,7 @@ if ('onhashchange' in window) { 104 cd/syscall 0x80/imm8 105 # if (eax < 0) abort 106 3d/compare-eax-with 0/imm32 -107 0f 8c/jump-if-lesser $_write-stream:abort/disp32 +107 0f 8c/jump-if-< $_write-stream:abort/disp32 108 # s->read += eax 109 01/add 1/mod/*+disp8 6/rm32/esi . . . 0/r32/eax 4/disp8 . # add eax to *(esi+4) 110 # . restore registers -- cgit 1.4.1-2-gfad0 -0700 committer Kartik Agaram <vc@akkartik.com> 2019-07-27 18:26:18 -0700 5490' href='/akkartik/mu/commit/html/055stream.subx.html?h=hlt&id=c8a3ccbeb89221d726542a89b42ddb26827af1f4'>c8a3ccbe ^
ce2c1efc ^

6e181e7f ^
9309600c ^
6e181e7f ^


9309600c ^
6e181e7f ^



60338448 ^
ce2c1efc ^
60338448 ^
ce2c1efc ^
60338448 ^
ce2c1efc ^
6e181e7f ^















ce2c1efc ^
6e181e7f ^















c8a3ccbe ^
6e181e7f ^





8aeb85f0 ^
6e181e7f ^









8aeb85f0 ^
b1635a5c ^
33352536 ^

e99038ea ^
33352536 ^



8aeb85f0 ^
33352536 ^
8aeb85f0 ^
33352536 ^
e99038ea ^
33352536 ^
e99038ea ^
33352536 ^
8aeb85f0 ^
33352536 ^
4a4a392d ^
8aeb85f0 ^
4a4a392d ^

8aeb85f0 ^
4a4a392d ^
8aeb85f0 ^
4a4a392d ^





b1635a5c ^
4a4a392d ^



8aeb85f0 ^
b1635a5c ^
4a4a392d ^










b1635a5c ^
4a4a392d ^




6e181e7f ^



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
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134