Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

help with assembler #89

Open
drarem opened this issue May 17, 2024 · 1 comment
Open

help with assembler #89

drarem opened this issue May 17, 2024 · 1 comment

Comments

@drarem
Copy link

drarem commented May 17, 2024

Trying to do this, figuring the poke is slightly faster than the sound statement. It doesn't do anything, tried various ways. The endians might be reversed or am loading the accumulator wrong. Supposed to at least hear the first note playing at volume of 12 when it runs.

.data AUDCTL1 53760
.data AUDVOL1 53761

LDA #str
STA AUDCTL
LDA #$172
STA AUDVOL1
RTS

**** SOURCE ***
DATA str() B. = 243,213,200,192,158,96
DATA AUDCTL1() B. = 0,210
DATA AUDVOL1() B. = 1,210

AUDCTL = 53760
AUDVOL = 53761
X = ADR(str)
? X, X+6
DATA ad() B. = $AD,str,$8D,AUDCTL1,$A9,172,$8D,AUDVOL1,$60

@drarem
Copy link
Author

drarem commented May 17, 2024

Nevermind, this can be closed. I can't really play the music in a loop and have any other interaction unless the music is built into the loop. But I was able to test it neatly in WUDSN:

        org $2000	;Start of code block

AUDACTL1 = $D200
AUDVOL1 =  $D201

start	lda #243		;Disable screen DMA
	
	sta $D200
	lda #172
	sta $D201
	
	
stop	jmp stop

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant