Subversion Repositories NedoOS

Rev

Rev 2379 | Blame | Compare with Previous | Last modification | View Log | Download

  1.         macro opn_write_music_only write_register
  2.         ld a,e
  3.         cp 0x30
  4.         jp nc,write_register
  5.         cp 0x0e
  6.         jp c,write_register
  7. ;block both timers and the prescaler (the TFM prescaler is fairly unique)
  8.         cp 0x28
  9.         jp z,write_register
  10.         endm
  11.  
  12. opnwritemusiconlyfm1
  13. ;skips writes to control registers
  14. ;e = register
  15. ;d = value
  16.         opn_write_music_only opnwritefm1
  17.         ret
  18.  
  19. opnwritemusiconlyfm2
  20. ;skips writes to control registers
  21. ;e = register
  22. ;d = value
  23.         opn_write_music_only opnwritefm2
  24.         ret
  25.  
  26. vgmopninit
  27.         call turnturbooff
  28.         jp opninit
  29.  
  30. vgmopnmute
  31.         call opnmute
  32.         jp turnturboon
  33.