add: templated gba memory access