VmType mainClass = loadClass(Main.class); VmStaticField registryField = (VmStaticField) mainClass.getField(Main.REGISTRY_FIELD_NAME);
final VmType mainClass = loadClass(Main.class); final VmStaticField registryField = (VmStaticField) mainClass.getField(Main.REGISTRY_FIELD_NAME);
	protected void initMain(X86Stream os, PluginRegistry registry) throws BuildException, ClassNotFoundException {		os.setObjectRef(new Label("$$Initialize Main"));		VmType mainClass = loadClass(Main.class);		VmStaticField registryField = (VmStaticField) mainClass.getField(Main.REGISTRY_FIELD_NAME);		// Setup STATICS register (EDI)		os.writeMOV_Const(Register.EDI, statics.getTable());		/* Set Main.pluginRegistry */		os.writeMOV_Const(Register.EBX, registry);		final int rfOffset = (VmArray.DATA_OFFSET + registryField.getStaticsIndex()) << 2;		os.writeMOV(INTSIZE, Register.EDI, rfOffset, Register.EBX);	}