Git Product home page Git Product logo

smw-src's Issues

Compatibility with newer versions of WLA-DX

My knowledge in Assembly extremely limited, but I was going to see if ChatGPT would help me. xD

As I mostly use Linux for coding, I was trying to use the linux binaries for wla-dx. I did many tests and I could not get it working, but I'm sharing the progress I got, so maybe someone can continue from here.

The included wla-dx binaries are for version 9.7b, the 7zip says it is from about july 29, 2016.

If I compile the point with the 9.7 tag, I get:

../../tool/wla-dx/binaries/wla-65816 -I../../include -o main.o main.S
equates/memory.i:461: DIRECTIVE_ERROR: Unexpected symbol "DL" in .ENUM.
equates/memory.i:461: ERROR: Couldn't parse "DL".
make: *** [makefile:32: main.o] Error 1

version 9.8 and 9.10 builds and starts the game, shows the company logo, produce sound, but as the logo fade out, it stays in the black screen.

I got errors trying to compile wla-dx 9.9.

wla-dx 9.11 onwards, I get:

wla-65816 -I../../include -o main.o main.S
game.s:785: ERROR: Unknown symbol "JMP".
make: *** [makefile:32: main.o] Error 1

game.s:785 contains:

	JMP [m0]

It seems to be from this change: https://github.com/vhelin/wla-dx/blame/a6f2bd33dd623bee295890e5cdab8479d617003d/i65816.c#L324

   { "JMP (?)", 0x6C, 2, 0 },
-  { "JMP (?,X)", 0x7C, 2, 0 },
-  { "JMP [?]", 0xDC, 2, 0 },
+  { "JMP [|?]", 0xDC, 2, 0 },
   { "JML [?]", 0xDC, 2, 0 },
+  { "JMP (|?,X)", 0x7C, 2, 0 },
+  { "JMP (?,X)", 0x7C, 2, 0 },

The replacement of JMP [?] to JMP [|?]. That commit says it shouldn't affect previous code, but maybe it's an unexpected behavior, idk.
So as I saw there were a JML just bellow with the same hexadecimal, I thought it could work as a replacement? idk.
So I changed all places where there was JMP [m0] to JML [m0] and it compiles.

But then I get some reference erros:

wlalink -v -S -L../../lib linkfile mw_e10.sfc
main.o: game.s:3353: FIX_REFERENCES: Reference to an unknown label "sm_Main.Data.EventsTriggered".
make: *** [makefile:22: all] Error 1

I'm not really sure how to fix that.

Anyway, for now it compiles just fine using wine to run the binaries distributed. I may do some more tests later.

Does anyone know how to open the music files?

I wanna edit the music in to game but I don't know what program to use. (.a files and other stuff) Do you know what programs I need to open these files? (And if you can, all the other files in the folder as well?) Thank you.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.