Use volatile_store for vga
Refactor vga