home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Dream 55
/
Amiga_Dream_55.iso
/
RISCOS
/
MAGAZINE
/
NEWS
/
PCE021.ZIP
/
Pce021
/
Src
/
hdr
/
psg
< prev
next >
Wrap
Text File
|
1998-07-24
|
1KB
|
63 lines
; psg.hdr
; -------
; PC Engine PSG emulation
; by Paul Clifford
downcounter_steps * 86
; channel data
^ 0
channel_volume_combined # 0
channel_volume_overall # 1 ; |
channel_volume_left # 1 ; | These must remain in this order
channel_volume_right # 1 ; |
# 1
channel_flags # 4 ; see below for layout
channel_music_reload # 4 ; rough and fine frequencies combined
channel_noise_reload # 4
channel_downcounter # 4
channel_read_position # 4
channel_write_position # 4
channel_random_value # 4
channel_waveform # 32
channel_direct_buffer # 32 ; circular buffer for dda output
channel_data_size * 128 ; so channel offset == channel << 7
; channel flags
channel_flag_noise * 1 << 0 ; channel used for noise (1) or music (0)
channel_flag_dda * 1 << 1 ; "dda" flag set? MUST BE BIT 1
channel_flag_ch_on * 1 << 2 ; "ch on" flag set? MUST BE BIT 2
channel_flag_direct * 1 << 3 ; use waveform buffer (0) or data directly (1)
;channel_flag_active * 1 << 4 ; channel active (1) or inactive (0)
; global data
^ 0
lfo_on # 4 ; lfo on (1) or off (0)
lfo_shift # 4
lfo_music_reload # 4 ; channel 1 frequency + variable fm
lfo_fm_reload # 4 ; channel 2 frequency * lfo frequency
lfo_fm_downcounter # 4
lfo_read_position # 4
volume_combined # 0
volume_left # 1
volume_right # 1
# 2
channel_selected # 4
divider_step_size # 4
random_constant # 4
old_sample_rate # 4
old_linear_handler # 8
global_data_size * @ ; must be < channel_data_size or problems in psg2.s
END