mirror of
https://github.com/voltrevo/ValueScript.git
synced 2026-04-18 03:00:27 -04:00
Use op+ syntax for all operator-based instructions
This commit is contained in:
@@ -4,9 +4,9 @@
|
||||
mov %x %return
|
||||
}
|
||||
@f1 = function(%a, %b, %c) {
|
||||
mul %b %c %_tmp0
|
||||
add %a %_tmp0 %return
|
||||
op* %b %c %_tmp0
|
||||
op+ %a %_tmp0 %return
|
||||
}
|
||||
@f2 = function() {
|
||||
inc %this
|
||||
op++ %this
|
||||
}
|
||||
|
||||
@@ -4,5 +4,5 @@
|
||||
call %foo [] %return
|
||||
}
|
||||
@foo = function(%x) {
|
||||
add %x 5 %return
|
||||
op+ %x 5 %return
|
||||
}
|
||||
|
||||
@@ -15,6 +15,6 @@
|
||||
}
|
||||
@Counter_inc = function() {
|
||||
sub %this "value" %_tmp0
|
||||
inc %_tmp0
|
||||
op++ %_tmp0
|
||||
submov "value" %_tmp0 %this
|
||||
}
|
||||
|
||||
@@ -17,6 +17,6 @@
|
||||
}
|
||||
@_anon0 = function() {
|
||||
sub %this "value" %_tmp0
|
||||
inc %_tmp0
|
||||
op++ %_tmp0
|
||||
submov "value" %_tmp0 %this
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user