about summary refs log tree commit diff stats
path: root/baremetal
diff options
context:
space:
mode:
Diffstat (limited to 'baremetal')
-rw-r--r--baremetal/101screen.subx14
1 files changed, 7 insertions, 7 deletions
diff --git a/baremetal/101screen.subx b/baremetal/101screen.subx
index 3e98d96b..fb87709c 100644
--- a/baremetal/101screen.subx
+++ b/baremetal/101screen.subx
@@ -6,10 +6,10 @@ pixel:  # screen: (addr screen), x: int, y: int, color: int
     89/<- %ebp 4/r32/esp
     # . save registers
     50/push-eax
-    56/push-esi
-    # esi = screen
-    8b/-> *(ebp+8) 6/r32/esi
-    81 7/subop/compare %esi 0/imm32
+    51/push-ecx
+    # ecx = screen
+    8b/-> *(ebp+8) 1/r32/ecx
+    81 7/subop/compare %ecx 0/imm32
     {
       75/jump-if-!= break/disp8
       # bounds checks
@@ -30,15 +30,15 @@ pixel:  # screen: (addr screen), x: int, y: int, color: int
       # eax += location of frame buffer
       03/add-> *0x7f28 0/r32/eax
       # *eax = color
-      8b/-> *(ebp+0x14) 6/r32/esi
-      88/byte<- *eax 6/r32/esi
+      8b/-> *(ebp+0x14) 1/r32/ecx
+      88/byte<- *eax 1/r32/CL
       # return
       eb $pixel:end/disp8
     }
     # TODO: fake screen
 $pixel:end:
     # . restore registers
-    5e/pop-to-esi
+    59/pop-to-ecx
     58/pop-to-eax
     # . epilogue
     89/<- %esp 5/r32/ebp
gt; 2013-12-14 16:35:56 +0000 committer James Booth <boothj5@gmail.com> 2013-12-14 16:35:56 +0000 Added history and jid tests to cmocka' href='/danisanti/profani-tty/commit/tests/test_jid.c?id=07308673261449c3aab3bbed627a8d61da7a0470'>07308673 ^
94bcf188 ^

07308673 ^
94bcf188 ^
1cc33cc4 ^
07308673 ^
94bcf188 ^

07308673 ^
94bcf188 ^
1cc33cc4 ^
07308673 ^
94bcf188 ^

07308673 ^
94bcf188 ^
1cc33cc4 ^
07308673 ^
94bcf188 ^

07308673 ^
94bcf188 ^
1cc33cc4 ^
07308673 ^
94bcf188 ^

07308673 ^
94bcf188 ^
1cc33cc4 ^
07308673 ^
94bcf188 ^

07308673 ^
94bcf188 ^
1cc33cc4 ^
07308673 ^
94bcf188 ^

07308673 ^
94bcf188 ^
1cc33cc4 ^
07308673 ^
94bcf188 ^

07308673 ^
94bcf188 ^
1cc33cc4 ^
07308673 ^
94bcf188 ^

07308673 ^
94bcf188 ^
1cc33cc4 ^
07308673 ^
94bcf188 ^

07308673 ^
94bcf188 ^
1cc33cc4 ^
07308673 ^
94bcf188 ^

07308673 ^
94bcf188 ^
1cc33cc4 ^
07308673 ^
94bcf188 ^

07308673 ^
94bcf188 ^
1cc33cc4 ^
07308673 ^
94bcf188 ^

07308673 ^
94bcf188 ^
1cc33cc4 ^
07308673 ^
94bcf188 ^

07308673 ^
94bcf188 ^
1cc33cc4 ^
07308673 ^
94bcf188 ^

07308673 ^
94bcf188 ^
1cc33cc4 ^
07308673 ^
94bcf188 ^

07308673 ^
94bcf188 ^
1cc33cc4 ^
07308673 ^
94bcf188 ^

07308673 ^
3a22719b ^
8bdab23e ^
3a22719b ^
07308673 ^
3a22719b ^

07308673 ^
3a22719b ^
8bdab23e ^
3a22719b ^
07308673 ^
3a22719b ^

07308673 ^
d239a127 ^


07308673 ^




d239a127 ^

07308673 ^
d239a127 ^


07308673 ^




d239a127 ^

07308673 ^
d239a127 ^


07308673 ^




d239a127 ^

07308673 ^
d239a127 ^


07308673 ^




94bcf188 ^
e263e00a ^
















1c5efaeb ^
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
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185