comparison python/testc3.py @ 231:521567d17388

simplify blink.c3
author Windel Bouwman
date Sat, 13 Jul 2013 20:20:44 +0200
parents 88a1e0baef65
children ef683881c64e
comparison
equal deleted inserted replaced
230:88a1e0baef65 231:521567d17388
302 off_x4 = 0 302 off_x4 = 0
303 adr_x5 = a0 + off_x4 303 adr_x5 = a0 + off_x4
304 t6 = [adr_x5] 304 t6 = [adr_x5]
305 t7 = 2 305 t7 = 2
306 add8 = t6 + t7 306 add8 = t6 + t7
307 off_y9 = 0 307 off_y9 = 4
308 adr_y10 = a0 + off_y9 308 adr_y10 = a0 + off_y9
309 [adr_y10] = add8 309 [adr_y10] = add8
310 ret """ 310 ret """
311 self.expectIR(snippet, block_code) 311 self.expectIR(snippet, block_code)
312 312
395 adr_x8 = deref6 + off_x7 395 adr_x8 = deref6 + off_x7
396 t9 = [adr_x8] 396 t9 = [adr_x8]
397 t10 = 14 397 t10 = 14
398 sub11 = t9 - t10 398 sub11 = t9 - t10
399 deref12 = [a0] 399 deref12 = [a0]
400 off_y13 = 0 400 off_y13 = 4
401 adr_y14 = deref12 + off_y13 401 adr_y14 = deref12 + off_y13
402 [adr_y14] = sub11 402 [adr_y14] = sub11
403 ret """ 403 ret """
404 self.expectIR(snippet, block_code) 404 self.expectIR(snippet, block_code)
405 405