Jump to content

AOUT routing question.


logo64
 Share

Recommended Posts

Greetings,

I finally got around to installing the latest SID OS, with '303' control, and have been loving it.  I was hoping that the pitch of the sequence would be mapped to an output on the AOUT, and once again I need to dig into the source files to figure out the AOUT hard-coded routing.  I'm having a hell of a time finding where in the code this is laid out... there are something like 60 files to wade through.  Any idea which file/files define the AOUT routing?

I Finally got around to posting some pictures and details on my modular midibox SID here:

http://home.earthlink.net/~erinys/tech.htm

-gerald

Link to comment
Share on other sites

I'm not so well versed on the MBSID but try sid_sw.inc, line 400....

	;; AOUT1: resonance
	movf	SID_RESONANCE_7BIT, W, BANKED
	BIFCLR	SID_SE_OPTION, SE_OPTION_TB303, BANKED, rgoto SIDSW_Handler_Res_NoAcc
	BIFCLR	SID_V1_BASE + SID_Vx_MODE, SID_MODE_ACCENT, BANKED, rgoto SIDSW_Handler_Res_NoAcc
	addlw	0x40
	IFSET	WREG, 7, movlw 0x7f
SIDSW_Handler_Res_NoAcc
	mullw	32
	movff	PRODL, AOUT1_L
	movff	PRODH, AOUT1_H

	;; AOUT2/3/4: PW OSC1/2/3
	movff	SID_V1_PW_L, AOUT2_L
	movff	SID_V1_PW_H, AOUT2_H
	movff	SID_V2_PW_L, AOUT3_L
	movff	SID_V2_PW_H, AOUT3_H
	movff	SID_V3_PW_L, AOUT4_L
	movff	SID_V3_PW_H, AOUT4_H

	;; AOUT5/6/7: Pitch OSC1/2/3
	swapf	SID_V1_FRQ_L, W, BANKED
	andlw	0x0f
	movwf	AOUT5_L
	swapf	SID_V1_FRQ_H, W, BANKED
	andlw	0xf0
	iorwf	AOUT5_L
	swapf	SID_V1_FRQ_H, W, BANKED
	andlw	0x0f
	movwf	AOUT5_H

	swapf	SID_V2_FRQ_L, W, BANKED
	andlw	0x0f
	movwf	AOUT6_L
	swapf	SID_V2_FRQ_H, W, BANKED
	andlw	0xf0
	iorwf	AOUT6_L, F
	swapf	SID_V2_FRQ_H, W, BANKED
	andlw	0x0f
	movwf	AOUT6_H

	swapf	SID_V3_FRQ_L, W, BANKED
	andlw	0x0f
	movwf	AOUT7_L
	swapf	SID_V3_FRQ_H, W, BANKED
	andlw	0xf0
	iorwf	AOUT7_L, F
	swapf	SID_V3_FRQ_H, W, BANKED
	andlw	0x0f
	movwf	AOUT7_H

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
 Share

×
×
  • Create New...