Return of the pseudo-sound routine..!

Any discussions related to the creation of new hardware or software for the ZX80 or ZX81
Post Reply
sirmorris
Posts: 2811
Joined: Thu May 08, 2008 5:45 pm

Return of the pseudo-sound routine..!

Post by sirmorris »

Way back in time someone posted some code for accessing a zon-x board;

http://forum.tlienhard.com/TS1000/www.t ... 930541.htm

And I've recompiled it for some kind of fun. Source and P file attached.


The code is relocatable. You can save it to ZXpand like so:

SAVE "SCMD.BIN;16514,27"

then reload it to your desired location nnn:

LOAD "SCMD.BIN;nnn"

left as-is you can call it with:

PRINT USR 16514,reg,data,reg,data,....

Enjoy!
Attachments
SOUNDCMD.zip
(1.94 KiB) Downloaded 264 times
User avatar
Andy Rea
Posts: 1606
Joined: Fri May 09, 2008 2:48 pm
Location: Planet Earth
Contact:

Re: Return of the pseudo-sound routine..!

Post by Andy Rea »

Thats a nice little ding-dong, for making basic souds within a basic program ;-)

Thanks SirMorris
what's that Smell.... smells like fresh flux and solder fumes...
Moggy
Posts: 3267
Joined: Wed Jun 18, 2008 2:00 pm

Re: Return of the pseudo-sound routine..!

Post by Moggy »

Indeed a sound "engine" that's can be used in games or like Andy says in any basic program, great stuff. :D

Regards
Moggy
Prime
Posts: 134
Joined: Thu Mar 24, 2011 3:02 am

Re: Return of the pseudo-sound routine..!

Post by Prime »

How about an implementation of the Dragon PLAY command ? It took a string of values describing the notes to be played and would play them, usefull for adding tuned to basic programs.

I seem to remember that Spectrum 128 basic also implemented this, and on an AY, so perhaps some code could be um....borrowed :)

Cheers.

Phill.
Post Reply