This is my first post. I am developing a Verilog version of YM2612, which will be used to run the Genesis on FPGA. I have been doing it with the help of Sauraen, who is a member of the forum. I am quite advanced with this and now I can actually run the Genesis on FPGA. I have some issues with my sound module, which I call JT12, and I need to debug it and verify it extensively before realising it open source to everyone.
I want to write a simple C program that just runs a series of tests on the YM2612. I will run it on a real Megadrive, the Exodus emulator and the FPGA project we are working on. I have found the gendev project, but I have not been able to make it for Ubuntu. So I am using now code::blocks and sgdk for Windows. I have been able to compile the Hello world example.
I am looking for someone who has an example C file where he writes to the YM2612 registers to make some sound. I am not doing it right somehow as my code gets stuck here:
Code: Select all
void waitbusy() {
volatile char *ym = (char*)0xa06000;
while( (*ym)&0x80 );
}
Code: Select all
volatile int *pw = (int *)0xa11100;
*pw = 0x100;
Thank you and sorry for making my first post a demand.