Files
avmplus/utils/abcasm/test/countedLoopAny.abs
dmcallis 65a0592776 Initial source code drop
Source code drop for the Actionscript virtual machine in the Adobe
Flash Player for December 2013
2013-12-02 16:04:04 -08:00

34 lines
544 B
Plaintext

/* This Source Code Form is subject to the terms of the Mozilla Public
* License, v. 2.0. If a copy of the MPL was not distributed with this
* file, You can obtain one at http://mozilla.org/MPL/2.0/. */
function main()
{
getlocal0
pushscope
pushbyte 0
coerce_a
setlocal1
loop:
findproperty print
getlocal1
callpropvoid print(1)
//callproperty print(1)
//pop // lose the print return
//inclocal_i 1
pushbyte 1
coerce_a
getlocal1
coerce_a
add
coerce_a
dup
setlocal1
pushbyte 10
coerce_a
ifngt loop
returnvoid
}