/* * Set a Wyse 700 register */ static void wy700_reg_set_uint8 (cga_t *wy, unsigned long addr, unsigned char val) { switch (addr) { case WY700_BANK_OFS: wy->reg[WY700_BANK_OFS] = val; break; case WY700_BANK_BASE: wy->reg[WY700_BANK_BASE] = val; break; case WY700_CONTROL: wy700_set_control (wy, val); break; case CGA_MODE: if (val == 0) { wy700_set_control (wy, 0); } cga_reg_set_uint8 (wy, addr, val); break; default: cga_reg_set_uint8 (wy, addr, val); break; } }
void m24_reg_set_uint8 (cga_t *m24, unsigned long addr, unsigned char val) { if (addr == M24_SPECIAL) { m24_set_special (m24, val); } else { cga_reg_set_uint8 (m24, addr, val); } }