mirror of
https://github.com/voltrevo/ValueScript.git
synced 2026-04-18 03:00:27 -04:00
21 lines
276 B
Plaintext
21 lines
276 B
Plaintext
@main = function() {
|
|
mov 0 %return
|
|
mov 0 %i
|
|
|
|
while_test:
|
|
op< %i 1000 %cond
|
|
jmpif %cond :while_body
|
|
end
|
|
|
|
while_body:
|
|
op% %i 3 %mod3
|
|
op% %i 5 %mod5
|
|
op* %mod3 %mod5 %skip
|
|
jmpif %skip :after_add
|
|
op+ %return %i %return
|
|
|
|
after_add:
|
|
op++ %i
|
|
jmp :while_test
|
|
}
|