/* Get the address which holds cursor pattern data.  */
static uint32_t get_hwc_address(SM501State *state, int crt)
/* Get the address which holds cursor pattern data.  */
static uint32_t get_hwc_address(SM501State *state, int crt)
{
    uint32_t addr = crt ? state->dc_crt_hwc_addr : state->dc_panel_hwc_addr;
    return (addr & 0x03FFFFF0);
}