I recently obtained a QSound device, and now that I cobbled together a working oqtadrive, I *should* be able to get my own programs running on the QL using the QSound! However, currently that is not yet the case.
I was wondering if anyone went this way, or got some suggestions for me to try out. So far I tried to play one of the predetermined sounds:
Following https://dilwyn.qlforum.co.uk/docs/manua ... QPRINT.pdf :
Code: Select all
moveq #0,d0
trap #1 ; MT INF
move.l $164(a0),d0 ; get $164 offsert from system vars, which is the AY.JMP (page 9)
move.l d0,a0 ; use AY.JMP as address
moveq #9,d0 ; play predefined noise (page 19)
moveq #1,d1 ; play predefied noise (gunshot)
jsr (a0) ; jump into the thing (similar to page 8)
Later today I will try and push raw data to the registers using the AY.WRALL; but Ideally Id like a really minimal example as a proof of concept that I can make the QSound make sound from assemble.
Any input is greatly appreciated; I hope to get some music going for my upcoming Sinclair QL intro
Kind regards,
Wietze