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.
This commit is contained in:
Damien George
2014-09-29 22:10:41 +01:00
parent 44c96b2314
commit e9dac3b4d0
5 changed files with 271 additions and 82 deletions

View File

@@ -77,6 +77,9 @@ Q(const)
Q(native)
Q(viper)
Q(uint)
Q(ptr)
Q(ptr8)
Q(ptr16)
#endif
#if MICROPY_EMIT_INLINE_THUMB