from minpiler.std import L, asm, dst, use_float

a = use_float()
asm('set', a, 10)  # generates `set a 10`
x = asm('read', dst(0, "prefix"), L.cell1, 0)  # generates `read _prefix__0 cell1 0; set x _prefix__0` then optimized to `read x cell1 0`

asm("wait", 20)  # => `wait 20`
asm("foo", "bar")  # => `foo "bar"`

from minpiler.std import L, asm, dst, use_float

a = use_float()
asm('set', a, 10)  # generates `set a 10`
x = asm('read', dst(0, "prefix"), L.cell1, 0)  # generates `read _prefix__0 cell1 0; set x _prefix__0` then optimized to `read x cell1 0`

asm("wait", 20)  # => `wait 20`
asm("foo", "bar")  # => `foo "bar"`

# generates `set a 10` # generates `read _prefix__0 cell1 0; set x _prefix__0` then optimized to `read x cell1 0` # => `wait 20` # => `foo "bar"`