program Tutorial_8_music;
var
	music:incsid("resources/sid/fliptape60.sid",2);

@define kernal 0



interrupt Raster();
begin
	StartIRQ(@kernal);
	// Enable SID addresses for reading the SID
	setmemoryconfig(0,1,1,0,0);
	waitforraster(100);
	screen_bg_col:=white;
	call(sidfile_1_play);
	screen_bg_col:=black;
	setmemoryconfig(0,1,1,1,0);
	CloseIRQ();

end;


begin
	disableciainterrupts();
	preventirq();
	
	setmemoryconfig(0,1,1,1,0);
	InitSid(sidfile_1_init);
	StartRasterChain(Raster(), 0, @kernal);
	Loop(); 
end.
