Path: utzoo!attcan!uunet!samsung!sdd.hp.com!hplabs!hpl-opus!hpnmdla!hpsad!randyh From: randyh@hpsad.HP.COM (Randy Hosler) Newsgroups: comp.sys.atari.st.tech Subject: Re: Sozobon asm Message-ID: <18420004@hpsad.HP.COM> Date: 17 Sep 90 15:00:11 GMT References: <18420003@hpsad.HP.COM> Organization: HP Signal Analysis Div - Rohnert Park, CA Lines: 34 Hi all, First I would like to thank everyone who made suggestions via e-mail or replied to this note. I got the code to compile :-) , however, it doesn't do what I had hoped. (more about that later) In order for it to compile I re-wrote the code as below. The other change I had to make was to the variable "program". It was originally declared a register char *program. When I compiled the code with the -S option and then looked at the source file I couldn't find _program anywhere accept in the asm fragment. After declaring program as a global above main() the code would compile because it now had a reference for _program. I don't know if everyone followed that, but I had a great time figuring it out. This is what the fragment now looks like. asm("movem.l a4-a6,-(sp)"); asm("move.l _program,-(sp)"); asm("jsr $32+(_program)"); asm("move.l (sp),_program"); asm("jsr $88+(_program)"); asm("move.l (sp)+,_program"); asm("movem.l (sp)+,a4-a6"); This code is part of a program that makes use of routines in stspeech.tos to produce speech from text while bypassing the prompts of stspeech.tos. I have a program called speech.tos that I thought was the same thing as stspeech.tos but apparently is not. If anyone has stspeech.tos or has written a program that interfaces to the speech routines of speech.tos please let me know. I would like to write some programs for my chidren that incorporate speech. Thanks alot, Randy randyh@hpsadpk