MuSICA disassembly and adapting it for pure ASM

Page 2/3
1 | | 3

By zPasi

Champion (495)

zPasi's picture

06-07-2019, 20:41

Giangiacomo Zaffini 2 wrote:

I'm quite sure music.bin needs having HIMEM moved from default value, in facts, even other MuSICA players move HIMEM. Why doesn't it do it by its own, it is unknown.

They used a Basic loader anyway, so it was just quicker to write that clear command in it.

By zPasi

Champion (495)

zPasi's picture

06-07-2019, 21:01

shram86 wrote:

If anyone has advice on how to get started adapting the disassembly to DOS, let me know. The only tricky part seems to be where it JUMPs to WRTPSG instead of CALLs it. Still puzzling that one out.

Normally you don't use clear-command in DOS. Of course not, it is a Basic thing.

I also think you are not supposed to touch HIMEM or stack pointer under DOS. Maybe it's still allowed, it just isn't a common practise.

Let's just hope that replay.bin doesn't try to call BIOS etc.

By shram86

Expert (109)

shram86's picture

06-07-2019, 21:51

zPasi wrote:
shram86 wrote:

If anyone has advice on how to get started adapting the disassembly to DOS, let me know. The only tricky part seems to be where it JUMPs to WRTPSG instead of CALLs it. Still puzzling that one out.

Normally you don't use clear-command in DOS. Of course not, it is a Basic thing.

I also think you are not supposed to touch HIMEM or stack pointer under DOS. Maybe it's still allowed, it just isn't a common practise.

Let's just hope that replay.bin doesn't try to call BIOS etc.

We'll see. It calls WRTPSG and RDPSG, and scans EXPTBL (for detecting slots) but other than that doesn't seem like it. I was however getting very bizarre behavior when attempting to copy the driver from its initial point when loaded in to where it should be at $ce00 - my app just goes to a blue screen. Very odd, I'll have to poke at it more later.

I think the point is to locate the stack below the music file and driver itself. That's easy enough to do - not sure if that will break anything in DOS but I don't think so...?

By Giangiacomo Zaffini 2

Master (201)

Giangiacomo Zaffini 2's picture

06-07-2019, 22:32

If anyone is interested into one of the these MSX-DOS2 MuSICA players, please download kr5tsr07.lzh archive from Tarosan page which contains also source code KR5TSR.SRC of this MSX-DOS2 MuSICA player, it needs 2 or more free RAM segments.
KR5TSR.COM player used official MuSICA driver (see same Tarosan archive site), it doesn't use alternative bgm.bin/musiced.bin MuSICA driver we have talked about all the time in this thread.
it doesn't matter much, these binaries should be nearly the same.
I've compiled from sources KR5TSR.COM (using zasm) and it works, archive - of course - has compiled .COM executable already.

By shram86

Expert (109)

shram86's picture

06-07-2019, 23:10

Cool, thanks, I couldn't find this before - but it would be much preferable if I can get one running in MSX-DOS 1 (for 64KB machines). Smile

By Giangiacomo Zaffini 2

Master (201)

Giangiacomo Zaffini 2's picture

29-03-2020, 20:07

I bump-up this thread because I want MuSICA have some love.

Look at this MuSICA blog page with links to collected selection songs, with downloadable goodies.
Thanks to uniskie a.k.a. sea urchin.

uniskie MuSICA blog page

Enjoy.

By raymond

Champion (433)

raymond's picture

29-03-2020, 20:25

Is there a large collection of songs which can be downloaded for MuSICA?

By Giangiacomo Zaffini 2

Master (201)

Giangiacomo Zaffini 2's picture

29-03-2020, 21:03

On top of my head...

from DRM archive is this

DRM Digital Sound Works MSX Sound Works archive

Another fancy rich archive is this GitHub repository

Roberto E. Vargas Caballero a.k.a. k0gaMSX repo MuSICA folder

other classic pages are

junred MuSICA page

and

ahiroe MuSICA page

By Giangiacomo Zaffini 2

Master (201)

Giangiacomo Zaffini 2's picture

31-03-2020, 12:06

So, back in topic ... after some time for researching ...
MuSICA is meant to be a MSX2 BASIC environtment music application.
Kinrou5/Kinrou4 are meant to be MSX-DOS or MSX-DOS 2 music drivers. Kinrou5 driver at least has BASIC environtment loaders for using it in BASIC environtment.

By sd_snatcher

Prophet (3257)

sd_snatcher's picture

31-03-2020, 12:32

Quote:

Look at this MuSICA blog page with links to collected selection songs, with downloadable goodies.
Thanks to uniskie a.k.a. sea urchin.

uniskie MuSICA blog page

Sweet!

Quote:

Is there a large collection of songs which can be downloaded for MuSICA?

There are plenty of MuSICA files on the MSX Chiptune Collection Vol.1, too.

Page 2/3
1 | | 3