Discord: galaxyhaxz
Every system designed to manage redundancy, adds complexity, until it too becomes redundant.
Somewhere beyond the meadows and deep in a forest, down into the cellars I reside, living in this eternal nightmare...
Source code to Super Mario World (SNES disassembly)
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.
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.
Would this be possible with emscripten?
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.