import time
time.sleep(0.1) # Wait for USB to become ready
@micropython.asm_thumb
def fun():
mov(r0, 42)
x = fun()
print(x)
@micropython.asm_thumb
def suma(r0, r1):
add(r0, r0, r1)
@micropython.asm_thumb
def resta(r0, r1):
sub(r0, r0, r1)
while(1):
print("Dame un número: ")
a = int(input())
print("Dame otro número: ")
b = int(input())
c = suma(a, b)
print("La suma es: "+str(c))
d = resta(a, b)
print("La resta es: "+str(d))