smw-src icon indicating copy to clipboard operation
smw-src copied to clipboard

Wasm build?

Open SipSup3314 opened this issue 1 year ago • 4 comments

Would this be possible with emscripten?

SipSup3314 avatar Apr 02 '23 02:04 SipSup3314

In its current state no, because the disassembly is all 65816 assembly. It would have to be translated (reimplemented) in C so it could then compile to WASM.

I started on such a project years ago but gave up due to the immense work required.

galaxyhaxz avatar Apr 02 '23 19:04 galaxyhaxz

Man that sucks--

Inline image

SipSup3314 avatar Apr 02 '23 21:04 SipSup3314

I'd recommend taking a look at this if you haven't: https://github.com/snesrev/zelda3

The author created a matching C implementation of Zelda 3 SNES's assembly. This is exactly what I wanted to achieve with Super Mario World, so hopefully someone will take up the task.

galaxyhaxz avatar Apr 03 '23 00:04 galaxyhaxz

I'll take a look and also I might port Zelda to wasm--

Inline image

SipSup3314 avatar Apr 03 '23 00:04 SipSup3314