private void checkContext(ScriptContext context) throws ScriptException {
		Object obj = context.getAttribute(MiniScriptLang.BINDING_RAM);
		if(!(obj instanceof int[])){
			throw new ScriptException(MiniScriptMessages.getLocaleMessage("ram.not.intarray.or.null"));//$NON-NLS-1$
		}
		ram = (int[])obj;
		obj = context.getAttribute(MiniScriptLang.BINDING_REGISTER);
		if(!(obj instanceof int[])){
			throw new ScriptException(MiniScriptMessages.getLocaleMessage("registers.not.intarray.or.null"));//$NON-NLS-1$
		}
		register = (int[])obj;
		if(register.length!=32)
			throw new ScriptException(MiniScriptMessages.getLocaleMessage("not.32.registers"));//$NON-NLS-1$
		obj = context.getAttribute(MiniScriptLang.BINDING_EXT);
		if(obj instanceof int[]){
			ext = (int[]) obj;
		}else{
			ext = NULL_EXT;
		}
		ram = (int[])obj;
		obj = context.getAttribute(EXECUTING_SCRIPT);
		if(obj instanceof Boolean && (Boolean)obj)
			throw new ScriptException(MiniScriptMessages.getLocaleMessage("already.executing"));//$NON-NLS-1$
	}