Mercurial > lcfOS
comparison python/ppci/target/arm/instructions.py @ 375:19eacf4f7270
Started on memory manager
author | Windel Bouwman |
---|---|
date | Sun, 23 Mar 2014 15:44:06 +0100 |
parents | 98ff43cfdd36 |
children | 6df89163e114 |
comparison
equal
deleted
inserted
replaced
374:72a3b646d543 | 375:19eacf4f7270 |
---|---|
404 elif isinstance(args[1], str): | 404 elif isinstance(args[1], str): |
405 return Ldr3(*args) | 405 return Ldr3(*args) |
406 raise Exception() | 406 raise Exception() |
407 | 407 |
408 | 408 |
409 def LdrPseudo(rt, lab): | |
410 """ Ldr rt, =lab ==> ldr rt, [pc, offset in litpool] ... dcd lab """ | |
411 return Ldr(rt, R0) | |
412 | |
409 def Str(*args): | 413 def Str(*args): |
410 if len(args) == 3 and isinstance(args[1], ArmRegister): | 414 if len(args) == 3 and isinstance(args[1], ArmRegister): |
411 return Str1(*args) | 415 return Str1(*args) |
412 elif len(args) == 2 and isinstance(args[1], ArmRegister): | 416 elif len(args) == 2 and isinstance(args[1], ArmRegister): |
413 return Str1(args[0], args[1], 0) | 417 return Str1(args[0], args[1], 0) |