HT
if (!HT)
unsigned short HT, HDE, HBS, HBE, HSS, HSE, VDE, VBS, VBE, VSS,
HT = gv->htotal;
HT /= 2;
WCrt(ba, CRT_ID_HOR_TOTAL, HT);
WCrt(ba, CRT_ID_LACE_END, HT / 2); /* MW/16 */
unsigned short HT, HDE, HBS, HBE, HSS, HSE, VDE, VBS, VBE, VSS,
HT = gv->htotal * hmul - 5;
((HT & 0x100) ? 0x01 : 0x00) |
(((HT-5) & 0x100) ? 0x40 : 0x00) );
WCrt(ba, CRT_ID_HOR_TOTAL, HT);
WCrt(ba, CRT_ID_DISPLAY_FIFO, HT - 5);
WCrt(ba, CRT_ID_LACE_RETR_START, HT / 2);
unsigned short HT, HDE, HBS, HBE, HSS, HSE, VDE, VBS, VBE, VSS,
HT = gv->htotal * hmul - 5;
((HT & 0x100) ? 0x01 : 0x00) |
(((HT-5) & 0x100) ? 0x40 : 0x00) );
WCrt(ba, CRT_ID_HOR_TOTAL, HT);
WCrt(ba, CRT_ID_DISPLAY_FIFO, HT - 5);
WCrt(ba, CRT_ID_LACE_RETR_START, HT / 2);
unsigned short HT, HDE, HBS, HBE, HSS, HSE, VDE, VBS, VBE, VSS,
HT = gv->htotal;
HT *= hmul;
WCrt(ba, CRT_ID_HOR_TOTAL, HT);
((HT & 0x100) ? 0x01 : 0x00) |
vm->htotal = md->HT * 32 / md->DEP;
vm->htotal = md->HT * md->FX;
WCrt(ba, CRT_ID_HOR_TOTAL, md->HT & 0xff);
((md->HT & 0x100) / 0x100) |
((md->HT & 0x200)/ 0x200) |
unsigned short HT;
WCrt (ba, CRT_ID_HOR_TOTAL, md->HT & 0xff);
| ((md->HT & 0x100) / 0x100 * 0x01)
WCrt (ba, CRT_ID_EXT_HOR_TIMING2, ( ((md->HT & 0x200)/ 0x200 * 0x01)
vm->htotal = md->HT * 32 / md->DEP;
vm->htotal = md->HT * md->FX;
unsigned short HT;
case HT:
case HT:
case HT:
#define DECLHASH(HT, VT) \
struct HT; \
struct HT *HT##_create(void); \
int HT##_insert(struct HT *, const char *, struct VT *); \
int HT##_replace(struct HT *, const char *, struct VT *); \
int HT##_remove(struct HT *, const char *); \
struct VT *HT##_lookup(struct HT *, const char *); \
int HT##_enumerate(struct HT *, \
#define DEFHASH(HT, VT) \
struct HT * \
HT##_create(void) \
struct HT *tbl; \
HT##_insert(struct HT *tbl, const char *name, struct VT *val) \
HT##_replace(struct HT *tbl, const char *name, struct VT *val) \
HT##_remove(struct HT *tbl, const char *name) \
HT##_lookup(struct HT *tbl, const char *name) \
struct HT##_enumcontext { \
HT##_enumerate_thunk(const char *name, void *value, void *voidctx) \
struct HT##_enumcontext *ctx = voidctx; \
HT##_enumerate(struct HT *tbl, \
struct HT##_enumcontext ctx; \
return ht_enumerate(&tbl->imp, HT##_enumerate_thunk, &ctx); \