ols: add feature to support >256K memory