Skip to content

inline asm: return value is zero if four arguments passed #1906

@peterhinch

Description

@peterhinch

MicroPython v1.6-223-g77f85db on 2016-03-15; PYBv1.0 with STM32F405RG

@micropython.asm_thumb
def foo(r0, r1, r2, r3):
    movw(r0, 25)
>>> foo(1,2,3,4)
0
>>> 

The fault only occurs if the function uses four arguments.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions