home *** CD-ROM | disk | FTP | other *** search
/ Dream 55 / Amiga_Dream_55.iso / RISCOS / MAGAZINE / NEWS / PCE021.ZIP / Pce021 / Src / hdr / psg < prev    next >
Text File  |  1998-07-24  |  1KB  |  63 lines

  1. ;    psg.hdr
  2. ;    -------
  3. ;    PC Engine PSG emulation
  4. ;    by Paul Clifford
  5.  
  6.  
  7. downcounter_steps    *    86
  8.  
  9.  
  10. ; channel data
  11.             ^    0
  12. channel_volume_combined    #    0
  13. channel_volume_overall    #    1    ; |
  14. channel_volume_left    #    1    ; | These must remain in this order
  15. channel_volume_right    #    1    ; |
  16.             #    1
  17. channel_flags        #    4    ; see below for layout
  18. channel_music_reload    #    4    ; rough and fine frequencies combined
  19. channel_noise_reload    #    4
  20. channel_downcounter    #    4
  21. channel_read_position    #    4
  22. channel_write_position    #    4
  23. channel_random_value    #    4
  24.  
  25. channel_waveform    #    32
  26. channel_direct_buffer    #    32    ; circular buffer for dda output
  27. channel_data_size    *    128    ; so channel offset == channel << 7
  28.  
  29.  
  30. ; channel flags
  31.  
  32. channel_flag_noise    *    1 << 0    ; channel used for noise (1) or music (0)
  33. channel_flag_dda    *    1 << 1    ; "dda" flag set? MUST BE BIT 1
  34. channel_flag_ch_on    *    1 << 2    ; "ch on" flag set? MUST BE BIT 2
  35. channel_flag_direct    *    1 << 3    ; use waveform buffer (0) or data directly (1)
  36. ;channel_flag_active    *    1 << 4    ; channel active (1) or inactive (0)
  37.  
  38.  
  39. ; global data
  40.             ^    0
  41. lfo_on            #    4    ; lfo on (1) or off (0)
  42. lfo_shift        #    4
  43. lfo_music_reload    #    4    ; channel 1 frequency + variable fm
  44. lfo_fm_reload        #    4    ; channel 2 frequency * lfo frequency
  45. lfo_fm_downcounter    #    4
  46. lfo_read_position    #    4
  47.  
  48. volume_combined        #    0
  49. volume_left        #    1
  50. volume_right        #    1
  51.             #    2
  52.  
  53. channel_selected    #    4
  54. divider_step_size    #    4
  55. random_constant        #    4
  56.  
  57. old_sample_rate        #    4
  58. old_linear_handler    #    8
  59. global_data_size    *    @    ; must be < channel_data_size or problems in psg2.s
  60.  
  61.  
  62.     END
  63.