+Gemintronic #1 Posted July 10, 2012 (edited) 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 July 10, 2012 by theloon Quote Share this post Link to post Share on other sites
+Gemintronic #2 Posted July 10, 2012 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? Quote Share this post Link to post Share on other sites
+Random Terrain #3 Posted July 10, 2012 The program compiles for me. What version of bB are you using? Quote Share this post Link to post Share on other sites
+Gemintronic #4 Posted July 10, 2012 (edited) 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 July 10, 2012 by theloon Quote Share this post Link to post Share on other sites
+Random Terrain #5 Posted July 10, 2012 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. Quote Share this post Link to post Share on other sites