import time
time.sleep(0.1) # Wait for USB to become ready

print("Hello, Pi Pico!")

@micropython.asm_thumb
def test(r0):
    bl(DECRIMENT)
    b(EXIT)

    label(DECRIMENT) # ----Recursive Loop------------
    cmp(r0,5)
    ble(DONE)
    sub(r0,1)
    mov(r7,lr)          # save lr for double branch
    push({r7})
    bl(DECRIMENT)
    pop({r7})
    mov(lr,r7)
    label(DONE)
    bx(lr)          # ---------------------

    label(EXIT)


print(test(50_000))
BOOTSELLED1239USBRaspberryPiPico©2020RP2-8020/21P64M15.00TTT