initialises adlib parameters
| 326 | |
| 327 | // initialises adlib parameters |
| 328 | void adlib_init() |
| 329 | { |
| 330 | for (int i=1; i<0xf5; ++i) adlib_reg(i,0); |
| 331 | adlib_reg(0x04, 0x60); //set both timers |
| 332 | adlib_reg(0x04, 0x80); //reset timers |
| 333 | adlib_reg(0x01, 0x20); //bit5 defines any wave form |
| 334 | adlib_reg(0xa8, 0x01); //last channel freq -?? |
| 335 | adlib_reg(0x08, 0x40); //note mode |
| 336 | adlib_reg(0xbd, 0xC0); // vibrato/AM depth |
| 337 | } |
| 338 | |
| 339 | |
| 340 | // sets voice amplitude for particular adlib channel |
no test coverage detected