[mtasc] compiling >32K data segments

Benjamin C. Allfree benles at bldigital.com
Tue Jul 19 20:04:54 CEST 2005


Hi,

I've been reading all the threads about the 32K jump limit and using SWFs
for loading data. 

In the example below, I don't see how >32K bytecode would cause an invalid
jump. branchIfTrue never jumps.

class DataHolder
{
	static function main()
	{
		_root.val=[42,43,44, {test45:46,test47:48}, '49'];
	}
}

The relevant disassembly is:

initMovieClip 20480
   ...
   not
   branchIfTrue label1
   ...
   function2  () (r:1='this')
     push '_root'
     getVariable
     push 'val', '49', 'test45', 46, 'test47', 48, 2
     initObject
     push 44, 43, 42, 5
     initArray
     setMember
   end // of function

  label1:
 end // of initMovieClip 20480






More information about the mtasc mailing list