hw/core/loader: Add new function rom_ptr_for_as()