Closed notogawa closed 4 years ago
By this PR, this code is equivalent to
L.loop sub(r0, r0, 1, cond = 'pushn') b(R.loop, cond = 'anyna') nop() nop() nop()
this one.
with loop as l: sub(r0, r0, 1, cond = 'pushn') l.b(cond = 'anyna') nop() nop() nop()
Using with syntax makes a program structure clear. This loop helper generates a label name automatically.
with
Great improvement! Thanks!
By this PR, this code is equivalent to
this one.
Using
with
syntax makes a program structure clear. This loop helper generates a label name automatically.