Quantcast
Channel: stardot.org.uk
Viewing all articles
Browse latest Browse all 5552

32-bit acorn hardware • Re: assembly language Archimedes sound

$
0
0
OSWORD 7, the same as the 8-bits. OSWORD 7 just calls SWI Sound_ControlPacked which falls through to Sound_Control, so the following are equivalent:

MOV R0,#7
ADR R1,soundblock
SYS "OS_Word"
...
.soundblock
EQUW 1:EQUW -15:EQUW 101:EQUB 10:\ SOUND 1,-15,101,10

MOV R0,#1 ; channel
MOV R1,#-15 ; volume
MOV R2,#101 ; middle C
MOV R3,#10 ; 10/20s duration
SYS "Sound_Control"

Note that ENVELOPE/OSWORD 8 is not implemented, and there's a couple of idiosyncrasies with the implementation, so I install SoundSupp module to clean it up.

Statistics: Posted by jgharston — Fri Oct 03, 2025 11:15 pm



Viewing all articles
Browse latest Browse all 5552

Trending Articles