next-cube.c: update scr_ops to properly use modern memory API