[Coco] SS.Tone

K. Pruitt pruittk at roadrunner.com
Thu Dec 24 12:33:05 EST 2015


Runs perfectly. I was just missing the $8E. I was using $98 (FF.TONE) as the 
callcode when I should have been using $8E (I$SetSTT).

It's obvious to me now that you've pointed it out. :)

Thanks again.


----- Original Message ----- 
From: "K. Pruitt" <pruittk at roadrunner.com>
To: "CoCoList for Color Computer Enthusiasts" <coco at maltedmedia.com>
Sent: Thursday, December 24, 2015 8:33 AM
Subject: Re: [Coco] SS.Tone


> Thanks Robert.
>
> Yes, I realize I was essentially asking "This doesn't work. Why?" without 
> reference of any sort. Unfortunately there isn't a delete post button. 
> What I was actually looking for was just a known working code snippet. And 
> you gave me one. So thanks. I'll give it a shot momentarily.
>
> I had CallCode set to $98 not $8E
>
> Everything else is Identical.
>
>
>
> ----- Original Message ----- 
> From: "Robert Gault" <robert.gault at att.net>
> To: "CoCoList for Color Computer Enthusiasts" <coco at maltedmedia.com>
> Sent: Thursday, December 24, 2015 7:18 AM
> Subject: Re: [Coco] SS.Tone
>
>
>> K. Pruitt wrote:
>>> I'm setting up the registers okay and using the proper system call ($98) 
>>> but I
>>> am not getting a tone. And when I check I see that I am generating an 
>>> error 208
>>> when calling this particular system call. I get the same thing in both 
>>> assembly
>>> and Basic09. I'm perplexed.
>>>
>>> Anybody have a code snippet showing how to properly use this call?
>>>
>>
>> Hard to tell what you did wrong since you did not post your code. Most 
>> likely you have a value set wrong.
>> First, don't confuse Setsta with the call you want to use. Second, make 
>> sure that regX and regY have acceptable values.
>> regX duration of call; LSB=ticks
>> regY frequency; 0=low 4095=high
>>
>> The manual does not make sense for regX LSB so just experiment. Here is 
>> an example that works.
>>
>> TYPE registers=cc,a,b,dp:BYTE; x,y,u:INTEGER
>> DIM regs:registers
>> DIM callcode,path:BYTE
>> regs.a=1
>> regs.b=$98
>> regs.x=$1464
>> regs.y=$0CD0
>> callcode=$8E
>> RUN syscall(callcode,regs)
>>
>> Robert
>>
>>
>> -- 
>> Coco mailing list
>> Coco at maltedmedia.com
>> https://pairlist5.pair.net/mailman/listinfo/coco
>>
>
>
> -- 
> Coco mailing list
> Coco at maltedmedia.com
> https://pairlist5.pair.net/mailman/listinfo/coco
> 



More information about the Coco mailing list