Project

General

Profile

« Previous | Next » 

Revision 1339

Added by markw about 4 years ago

Allow different settings for with and without sid (for post divide!)

View differences:

init.c
buffer[0] |= (irq_en&1)<<3;
buffer[0] |= (detect_right&1)<<4;
buffer[0] |= (pal&1)<<5;
int post_divide = 0b10100101;
int post_divide = 0b10100000;
buffer[1] |= (post_divide&0xff)<<0;
int gtia_enable = 0b1100;
buffer[2] |= (gtia_enable&0xf)<<0;
......
}
fclose(f);
FILE * x =fopen("init.bin","w");
FILE * x =fopen("init_0.bin","w");
fwrite(&buffer[0],1,32768,x);
fclose(x);
post_divide = 0b10100101;
buffer[1] |= (post_divide&0xff)<<0;
x =fopen("init_1.bin","w");
fwrite(&buffer[0],1,32768,x);
fclose(x);
return 0;
}

Also available in: Unified diff