|
177 | 177 | 0x60 shr // [addr, windex, rindex]
|
178 | 178 | PULL_ADDRESS() ADDRESS_STORAGE_POINTER() sstore // [windex, rindex]
|
179 | 179 |
|
180 |
| - // Add 20 bytes to both indexes |
181 |
| - |
182 |
| - 0x14 dup1 // [0x14, 0x14, windex, rindex] |
183 |
| - swap3 // [rindex, 0x14, windex, 0x14] |
184 |
| - add // [windex + 0x14, 0x14, rindex] |
| 180 | + // Add 32 bytes to both indexes |
185 | 181 |
|
186 |
| - swap2 // [rindex, 0x14, windex + 0x14] |
187 |
| - add // [rindex + 0x14, windex + 0x14] |
| 182 | + 0x20 dup1 // [0x20, 0x20, windex, rindex] |
| 183 | + swap3 // [rindex, 0x20, windex, 0x20] |
| 184 | + add // [rindex + 0x20, 0x20, windex] |
188 | 185 |
|
189 |
| - swap1 // [windex + 0x14, rindex + 0x14] |
| 186 | + swap2 // [windex, 0x20, rindex + 0x20] |
| 187 | + add // [windex + 0x20, rindex + 0x20] |
190 | 188 |
|
191 | 189 | // output stack: [windex + 20, rindex + 20]
|
192 | 190 | }
|
|
201 | 199 |
|
202 | 200 | FLAG_SAVE_ADDRESS() // [windex, rindex]
|
203 | 201 |
|
204 |
| - 0x15 eq ASSERT() // [rindex] |
205 |
| - 0x34 eq ASSERT() // [] |
| 202 | + 0x40 eq ASSERT() // [rindex] |
| 203 | + 0x21 eq ASSERT() // [] |
206 | 204 |
|
207 | 205 | // Validate that memory was written correctly
|
208 | 206 |
|
|
238 | 236 |
|
239 | 237 | 0x20 dup1 // [0x20, 0x20, windex, rindex]
|
240 | 238 | swap3 // [rindex, 0x20, windex, 0x20]
|
241 |
| - add // [windex + 0x20, 0x20, rindex] |
| 239 | + add // [rindex + 0x20, 0x20, windex] |
242 | 240 |
|
243 |
| - swap2 // [rindex, 0x20, windex + 0x20] |
244 |
| - add // [rindex + 0x20, windex + 0x20] |
245 |
| - |
246 |
| - swap1 // [windex + 0x20, rindex + 0x20] |
| 241 | + swap2 // [windex, 0x20, rindex + 0x20] |
| 242 | + add // [windex + 0x20, rindex + 0x20] |
247 | 243 |
|
248 | 244 | // output stack: [windex + 32, rindex + 32]
|
249 | 245 | }
|
|
257 | 253 |
|
258 | 254 | FLAG_SAVE_BYTES32() // [windex, rindex]
|
259 | 255 |
|
260 |
| - 0x21 eq ASSERT() // [rindex] |
261 | 256 | 0x40 eq ASSERT() // []
|
| 257 | + 0x21 eq ASSERT() // [rindex] |
262 | 258 |
|
263 | 259 | // Validate that memory was written correctly
|
264 | 260 |
|
|
0 commit comments