News: 11 March 2016 - Forum Rules

Author Topic: Documents: A Complete Disassembly of The Legend of Zelda  (Read 4536 times)

RHDNBot

  • Guest
Documents: A Complete Disassembly of The Legend of Zelda
« on: February 09, 2021, 06:55:28 am »

Update By: CrimsonMagus

Version 1.0 of The Legend of Zelda disassembly has been completed! This project contains assembly language source code that can be assembled with ca65. The code has been fully labeled and commented.

This project started with an effort to remake the game in C++. The remake was completed in 2017. But the related reverse engineering effort was poorly documented. It was in October 2020 that the attempt at a complete disassembly began.

Version 1.0 is on the RHDN project page. Up-to-date source code of the disassembly and the remake can be found at the link below.

RHDN Project Page

Relevant Link

Rudy

  • Jr. Member
  • **
  • Posts: 49
    • View Profile
Re: Documents: A Complete Disassembly of The Legend of Zelda
« Reply #1 on: February 09, 2021, 08:51:46 am »
-
« Last Edit: February 09, 2021, 12:57:24 pm by Rudy »

CrimsonMagus

  • Jr. Member
  • **
  • Posts: 3
    • View Profile
Re: Documents: A Complete Disassembly of The Legend of Zelda
« Reply #2 on: February 10, 2021, 01:42:16 am »
I decided to migrate my repositories to github:

https://github.com/aldonunez

There, in addition to the Zelda disassembly and remake, you will also find a Final Fantasy remake that I wrote based on Disch's disassembly.
« Last Edit: February 10, 2021, 02:48:51 pm by CrimsonMagus »

KevvyLava

  • Jr. Member
  • **
  • Posts: 47
    • View Profile
Re: Documents: A Complete Disassembly of The Legend of Zelda
« Reply #3 on: February 13, 2021, 11:49:53 pm »
Man, every time I go to Github on a re-direct, I don't know what the hell I'm looking at. It's sort of like 4chan, where I feel like it's deliberately hard to follow what's going on so only certain people can make sense of what's happening. You go to Github, I'm out. Anyone else with me on this or am I the only idjiot?

tc

  • Hero Member
  • *****
  • Posts: 1216
  • Lum Fan
    • View Profile
    • Eon Blog
Re: Documents: A Complete Disassembly of The Legend of Zelda
« Reply #4 on: February 14, 2021, 02:18:25 am »
Source code and legal documents are alien languages.

CrimsonMagus

  • Jr. Member
  • **
  • Posts: 3
    • View Profile
Re: Documents: A Complete Disassembly of The Legend of Zelda
« Reply #5 on: February 14, 2021, 03:04:57 am »
Yes. Github's UI is busier than Bitbucket's.

ANESCoder

  • Jr. Member
  • **
  • Posts: 3
    • View Profile
Re: Documents: A Complete Disassembly of The Legend of Zelda
« Reply #6 on: February 14, 2021, 04:39:08 am »
What an insane amount of work this must have been! How many hours did it take to figure this all out? :)

CrimsonMagus

  • Jr. Member
  • **
  • Posts: 3
    • View Profile
Re: Documents: A Complete Disassembly of The Legend of Zelda
« Reply #7 on: February 15, 2021, 07:41:10 pm »
An opportunity presented itself last fall. So, I was able to study all the code mostly full-time for about 3 months. The tools I wrote took about a month.

I pretty much started from scratch this time, and used very little of my work on the C++ remake.

I probably spent more time on the conversion tool than expected, because I wanted to avoid manual editing of the assembly code. I wanted one input and one output: I edit labels and comments in Mesen, and the conversion tool processes it all and turns it into .asm files.
« Last Edit: February 15, 2021, 09:45:10 pm by CrimsonMagus »

Mattiac

  • RHDN Patreon Supporter!
  • Jr. Member
  • *****
  • Posts: 88
    • View Profile
    • The Translators
Re: Documents: A Complete Disassembly of The Legend of Zelda
« Reply #8 on: February 16, 2021, 04:08:09 am »
Konichiwa, Crimson-san.

Thank you so very much for the complete
disassembly of The Legend of Zelda!

Will you do Zelda 2 next?

May Japan bless you!
Please translate Lady Stalker for SNES!

ANESCoder

  • Jr. Member
  • **
  • Posts: 3
    • View Profile
Re: Documents: A Complete Disassembly of The Legend of Zelda
« Reply #9 on: February 17, 2021, 10:05:05 am »
An opportunity presented itself last fall. So, I was able to study all the code mostly full-time for about 3 months. The tools I wrote took about a month.

I pretty much started from scratch this time, and used very little of my work on the C++ remake.

I probably spent more time on the conversion tool than expected, because I wanted to avoid manual editing of the assembly code. I wanted one input and one output: I edit labels and comments in Mesen, and the conversion tool processes it all and turns it into .asm files.

Some "behind-the-scenes" would be cool to read as inspiration on how you organized/figured things out etc. :)