commit | e9dac3b4d039997f446b6a615d580d284497d59b | [log] [tgz] |
---|---|---|
author | Damien George <damien.p.george@gmail.com> | Mon Sep 29 22:10:41 2014 +0100 |
committer | Damien George <damien.p.george@gmail.com> | Mon Sep 29 22:10:41 2014 +0100 |
tree | 3ffda8af59c5c5008883d52c54264057b1c49392 | |
parent | 44c96b2314f5519643f5c8baa1c05f4f5ce6ff7c [diff] [blame] |
py: Add casting to viper; add native mem stores to viper. Viper can now do the following: def store(p:ptr8, c:int): p[0] = c This does a store of c to the memory pointed to by p using a machine instructions inline in the code.
diff --git a/py/qstrdefs.h b/py/qstrdefs.h index 070e673..fda140f 100644 --- a/py/qstrdefs.h +++ b/py/qstrdefs.h
@@ -77,6 +77,9 @@ Q(native) Q(viper) Q(uint) +Q(ptr) +Q(ptr8) +Q(ptr16) #endif #if MICROPY_EMIT_INLINE_THUMB