Source code drop for the Actionscript virtual machine in the Adobe Flash Player for December 2013
29 lines
507 B
Plaintext
29 lines
507 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
|
|
setlocal1
|
|
|
|
loop:
|
|
findproperty print
|
|
getlocal1
|
|
callpropvoid print(1)
|
|
//callproperty print(1)
|
|
//pop // lose the print return
|
|
//pushbyte 1
|
|
inclocal_i 1
|
|
getlocal1
|
|
//dup
|
|
//coerce int
|
|
//setlocal1
|
|
pushbyte 10
|
|
ifngt loop
|
|
|
|
returnvoid
|
|
}
|