void init_gsword(void) { int i; for(i=0;i<4;i++) TAITO8741_reset(i); coins = 0; gsword_nmi_count = 0; gsword_nmi_step = 0; }
int TAITO8741_start(const struct TAITO8741interface *taito8741intf) { int i; intf = taito8741intf; //taito8741 = (I8741 *)malloc(intf->num*sizeof(I8741)); //if( taito8741 == 0 ) return 1; for(i=0;i<intf->num;i++) { taito8741[i].connect = intf->serial_connect[i]; taito8741[i].portHandler = intf->portHandler_r[i]; taito8741[i].mode = intf->mode[i]; TAITO8741_reset(i); } return 0; }