-
Notifications
You must be signed in to change notification settings - Fork 9
Open
Labels
Description
the following code,
var a,b
a=b=0
generates these byte code,
[0000| 1|01] LOAD_INT 0
[0001| 1|02] PUSH_STK_LOCAL b
[0002|-1|01] STORE n:1
[0003| 1|02] PUSH_STK_LOCAL a
[0004|-1|00] STORE n:1 [RST]
It's recommended to load both idenfitiers and then assign multiple like this,
[0000| 1|01] LOAD_INT 0
[0001| 1|02] PUSH_STK_LOCAL b
[0003| 1|02] PUSH_STK_LOCAL a
[0004|-1|00] STOREN n:2 [RST]
Conditions:
-Ensure that right expression is only one (avoid expression sequence )