amiga_custom
amiga_custom.intreq = IF_AUD0;
amiga_custom.intreq = IF_AUD1;
amiga_custom.intreq = IF_AUD2;
amiga_custom.intreq = IF_AUD3;
unsigned short ints = amiga_custom.intreqr & amiga_custom.intenar;
amiga_custom.intreq = IF_DSKSYN;
amiga_custom.intena = 0x7fff;
amiga_custom.intreq = 0x7fff;
amiga_custom.intena = IF_SETCLR | IF_INTEN;
amiga_custom.intena = IF_SETCLR | (1 << (data->irq - IRQ_USER));
amiga_custom.intena = 1 << (data->irq - IRQ_USER);
unsigned short ints = amiga_custom.intreqr & amiga_custom.intenar;
amiga_custom.intreq = IF_TBE;
amiga_custom.intreq = IF_DSKBLK;
amiga_custom.intreq = IF_SOFT;
unsigned short ints = amiga_custom.intreqr & amiga_custom.intenar;
amiga_custom.intreq = IF_BLIT;
amiga_custom.intreq = IF_COPER;
amiga_custom.intreq = IF_VERTB;
unsigned short ints = amiga_custom.intreqr & amiga_custom.intenar;
#define custom amiga_custom
amiga_custom.intena = IF_SETCLR | IF_PORTS;
amiga_custom.intena = IF_SETCLR | IF_EXTER;
amiga_custom.intena = IF_PORTS;
amiga_custom.intena = IF_EXTER;
amiga_custom.intreq = IF_SETCLR | base->int_mask;
amiga_custom.intreq = IF_SETCLR | base->int_mask;
amiga_custom.intreq = base->int_mask;
switch (amiga_custom.deniseid & 0xf) {
switch ((amiga_custom.vposr>>8) & 0x7f) {
return *(unsigned long *)&amiga_custom.vposr;
amiga_custom.dmacon = DMAF_ALL;
amiga_custom.dmacon = DMAF_SETCLR | DMAF_MASTER;
amiga_custom.serdat = (unsigned char)c | 0x100;
while (!(amiga_custom.serdatr & 0x2000))
while (!(amiga_custom.intreqr & IF_RBF))
ch = amiga_custom.serdatr & 0xff;
amiga_custom.intreq = IF_RBF;
amiga_custom.htotal = 113; /* 31 kHz */
amiga_custom.vtotal = 223; /* 70 Hz */
amiga_custom.beamcon0 = 0x4390; /* HARDDIS, VAR{BEAM,VSY,HSY,CSY}EN */
amiga_custom.hsstrt = amiga_custom.hsstop = 116;
amiga_custom.vsstrt = amiga_custom.vsstop = 226;
DEFINE(CUSTOMBASE, &amiga_custom);
#define custom amiga_custom
case 0: data = ~amiga_custom.joy0dat; button = (~ciaa.pra >> 6) & 1; break;
case 1: data = ~amiga_custom.joy1dat; button = (~ciaa.pra >> 7) & 1; break;
joy0dat = amiga_custom.joy0dat;
potgor = amiga_custom.potgor;
joy0dat = amiga_custom.joy0dat;
status = amiga_custom.serdatr;
amiga_custom.adkcon = AC_SETCLR | AC_UARTBRK;
amiga_custom.adkcon = AC_UARTBRK;
amiga_custom.intena = IF_RBF;
amiga_custom.intreq = IF_RBF;
while(!((lsr = amiga_custom.serdatr) & SDR_TSRE)) {
amiga_custom.intena = IF_TBE;
amiga_custom.intreq = IF_TBE;
state->port = (int)&amiga_custom.serdatr; /* Just to give it a value */
amiga_custom.intena = IF_RBF | IF_TBE;
amiga_custom.intreq = IF_RBF | IF_TBE;
amiga_custom.intena = IF_SETCLR | IF_TBE;
amiga_custom.serdat = (unsigned char)c | 0x100;
while (!(amiga_custom.serdatr & 0x2000))
unsigned short intena = amiga_custom.intenar;
amiga_custom.intena = IF_TBE;
amiga_custom.intreq = IF_SETCLR | IF_TBE;
amiga_custom.intena = IF_SETCLR | (intena & IF_TBE);
serdatr = amiga_custom.serdatr;
amiga_custom.intreq = IF_RBF;
amiga_custom.intreq = IF_TBE;
amiga_custom.serdat = info->x_char | 0x100;
amiga_custom.intena = IF_TBE;
amiga_custom.serdat = info->xmit.buf[info->xmit.tail++] | 0x100;
amiga_custom.intena = IF_TBE;
amiga_custom.intena = IF_SETCLR | IF_TBE;
amiga_custom.intreq = IF_SETCLR | IF_TBE;
amiga_custom.intena = IF_TBE;
amiga_custom.intreq = IF_TBE;
if (amiga_custom.serdatr & SDR_TBE) {
amiga_custom.intreq = IF_RBF;
amiga_custom.intena = IF_SETCLR | IF_RBF | IF_TBE;
amiga_custom.intena = IF_RBF | IF_TBE;
amiga_custom.adkcon = AC_UARTBRK;
amiga_custom.serper = serper;
amiga_custom.intena = IF_SETCLR | IF_TBE;
amiga_custom.intreq = IF_SETCLR | IF_TBE;
amiga_custom.intena = IF_SETCLR | IF_TBE;
amiga_custom.intreq = IF_SETCLR | IF_TBE;
if(!(amiga_custom.intenar & IF_TBE)) {
amiga_custom.intena = IF_SETCLR | IF_TBE;
amiga_custom.intreq = IF_SETCLR | IF_TBE;
#define custom amiga_custom
#define custom amiga_custom