Page 1 of 1

Soundbox by Pam D'Arcy

Posted: Mon Mar 09, 2015 7:17 am
by g0blinish
Soundbox.zip
(10.41 KiB) Downloaded 283 times
Soundbox.zip
(10.41 KiB) Downloaded 283 times
I found an interesting article in "198504 dragon user.pdf" - "The Dragon Roars"

All my attempts to assemble listings failed. I made a dump from page and type a Basic listing.

Re: Soundbox by Pam D'Arcy

Posted: Mon Mar 09, 2015 7:05 pm
by robcfg
Hi, and welcome to the forum!

At first sight, the program you uploaded is incomplete, as the strings of the menu aren't present on the binary file.

I'm going to take a look at the Dragon User article.

Regards,
Rob

Re: Soundbox by Pam D'Arcy

Posted: Tue Mar 10, 2015 7:25 am
by g0blinish
sound2.zip
(1.28 KiB) Downloaded 268 times
robcfg wrote:Hi, and welcome to the forum!
At first sight, the program you uploaded is incomplete, as the strings of the menu aren't present on the binary file.
hi,
article differs from binary - BASIC loader+binary playing routines. Disassembly attached, one differs from listing.

Re: Soundbox by Pam D'Arcy

Posted: Tue Mar 10, 2015 9:00 am
by devo
I found same problem when I tried to assemble the listing a while ago. I notice some differences within the first 16 bytes assembled compared to the hex listing in the article. In the end, I gave up trying to figure it out and typed in the hex listing - it worked. Hopefully the attached XRoar snapshot works on your setup. Otherwise I will try to convert it into a bin file. It would be good to know what the problem was.

Re: Soundbox by Pam D'Arcy

Posted: Tue Mar 10, 2015 10:21 am
by g0blinish
I think .vdk works OK. but I tried to assemble attached source with two cross-assemblers - lwtools and asm6809.
lwtools+DragonTools had produced working binary, I just added BASIC from article's listing.
Then I assemble source with -D option binary file not works:(
I have no idea why, my level is beginner in Dragon32 and 6809.

Re: Soundbox by Pam D'Arcy

Posted: Tue Mar 10, 2015 4:35 pm
by pser1
Hello

I isolated the two parts of the program:
A Basic program (the menu)
A ML small routine
I attach both as cas and wav files to load into XRoar and inside an VDK
Carefull. The Basic program has been slightly modified so that it loads the machine code.
Right now it looks for it in the disk system, you can modify line 30 and substitute LOAD for CLOADM
if you wish to test it without drives

cheers
pere

Re: Soundbox by Pam D'Arcy

Posted: Tue Mar 10, 2015 5:16 pm
by pser1
If anyone would like to have a look at the source code, here is the disassembled listing for the ML routine(s)

cheers
pere

Re: Soundbox by Pam D'Arcy

Posted: Tue Mar 10, 2015 7:47 pm
by g0blinish

Code: Select all

6D78 0053       NEG   <$53		; $6DCB = $6D78 + $ 53
6D7A 0063       NEG   <$63		; $6DDB = $6D78 + $ 63
6D7C 007E       NEG   <$7E		; $6DF6 = $6D78 + $ 7E
6D7E 008D       NEG   <$8D		; $6E05 = $6D78 + $ 8D
6D80 00AA       NEG   <$AA		; $6E22 = $6D78 + $ AA
6D82 00D2       NEG   <$D2		; $6E4A = $6D78 + $ D2
looks different:

Code: Select all

** SOUND ROUTINE TABLE
SNDTAB
 FDB LASER-SNDTAB ; 0-BPARAM
 FDB PHASER-SNDTAB ;1
 FDB ROAR-SNDTAB   ;2
 FDB EXPLOD-SNDTAB ;3
 FDB GUN-SNDTAB    ;4
 FDB FREQ-SNDTAB   ;5
see disassembled file I posted. Still interesting why binary won't run

Re: Soundbox by Pam D'Arcy

Posted: Tue Mar 10, 2015 8:28 pm
by pser1
the BIN I uploaded as CAS and WAV work right for me.
The same applies to the VDK with it and the basic loader.

Test in a Dragon 32 and Dragon64 with and without drives

cheers
pere