Jump to content
Gemintronic

Problem Integrating VisualbB Music Engine

Recommended Posts

UPDATE: I got it working by doing the following:

 

* Extract the VisualbB music engine template for normal DATA statements.

* Insert music from Nitebear on Sleepystreet and modify as needed.

* Integrate MMSBC game code in last bank.

 

NEW WORKING CODE IS IN MMSBCMUSIC.ZIP

 

So, I have a game that is using several inline assembly binaries including the titlescreen kernel.

 

When I even attempt to put an SDATA statement in it barfs. Anyone know what is going on? I'm not even trying to put in the music engine code yet - just the darn data!

 

[7/10/2012 11:35:25 AM] saving C:\BatariBASIC\Projects\MMSBC\mmsbc16kmusic.bas succeeded.
Compile started at 7/10/2012 11:35:27 AM
Compiling C:\BatariBASIC\Projects\MMSBC\mmsbc16kmusic.bas
DASM V2.20.07, Macro Assembler (C)1988-2003
  bytes of ROM space left in bank 1
  bytes of ROM space left in bank 2
  bytes of ROM space left in bank 3
  bytes of ROM space left in bank 4
  bytes of ROM space left in bank 5
  bytes of ROM space left in bank 6
mmsbc16kmusic.bas.asm (1375): error: Illegal Addressing mode 'sta '.
--> _begin d002				  
mmsbc16kmusic.bas.asm (1378): error: Syntax Error ''.
mmsbc16kmusic.bas.asm (1378): error: Illegal Addressing mode 'sta +1'.
Errors were encountered during assembly.
2600 Basic compilation completed.
Compilation completed at 7/10/2012 11:35:28 AM
view output file:///C:/BatariBASIC/Projects/MMSBC/bin
Post compilation files deleted

MMSBCMUSICBAD.zip

MMSBCMUSIC.zip

Edited by theloon

Share this post


Link to post
Share on other sites

Sorry to bump my own topic. It started to compile again when I took out the SDATA and made it a normal DATA statement. Does this mean SDATA statements are wrecked? Or are my coding skills mangling the proper use of SDATA?

Share this post


Link to post
Share on other sites

Thanks for testing compilation R.T.!

 

This is what VisualbB tells me about the bB version:

batari Basic Compiler date (1/31/2011 12:15:04 AM)

Current bB compiler version supports -O option. Peephole optimizer option enabled.

Current bB compiler version supports DPC+ Kernel. DPC+ options enabled.

 

The MMSBCMUSIC.ZIP works only because I switched to DATA statements instead of SDATA.

 

Errr, uh oh.. does this mean I'm using bB 1.1 and it no longer supports SDATA statements?

Edited by theloon

Share this post


Link to post
Share on other sites

Thanks for testing compilation R.T.!

 

This is what VisualbB tells me about the bB version:

batari Basic Compiler date (1/31/2011 12:15:04 AM)

Current bB compiler version supports -O option. Peephole optimizer option enabled.

Current bB compiler version supports DPC+ Kernel. DPC+ options enabled.

 

The MMSBCMUSIC.ZIP works only because I switched to DATA statements instead of SDATA.

 

Errr, uh oh.. does this mean I'm using bB 1.1 and it no longer supports SDATA statements?

 

Could be. I can't remember right now (it might come back to me), but there was something I was trying to do that also wouldn't work with the latest version of bB, so I said "screw it" and went back to the version in bBWin7_64bit.zip. Now everything works pretty much like it's supposed to. I'm not messing with the new version until batari has a chance to figure out what is wrong with it.

Share this post


Link to post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...

  • Recently Browsing   0 members

    No registered users viewing this page.

×
×
  • Create New...