[NTLK] ROM Disassembly online?
Steven Frank
stevenf at panic.com
Wed Apr 1 13:09:59 EDT 2015
Never mind, I'm dumb. Just noticed that you already posted a sample disassembly.
It might be hard to align comments and symbols to the correct lines without an address on each line -- or is it safe to assume each line of disassembly is 4 bytes of code?
I'll see if I can write something simple later today that can merge comments into your DataAbort.s from a separate file.
Steven
> On Apr 1, 2015, at 7:08 AM, Matthias Melcher <mm at matthiasm.com> wrote:
>
>
> Hi developers,
>
> seeing that we all work with more or less well done disassembled ROMs, and that we seem to be commenting the same functions over and over again, I was wondering if we could find a way to put the ROM online.
>
> Yes, I am aware of copyright issues, so I made a cunning plan. Please give ideas and alternatives! Thanks.
>
> So, let's start a GITHUB setup and put a disassembler there. I have one that is pretty good by now and disassembles about 98% of all code with many symbols in it. It creates readable assembler code for NewtonScript parts automatically as well.
>
> The idea is to upload the comments only, and use a modified assembler to add the ROM code when needed, and to remove the ROM code before pushing any additional comments and findings to git. There will never be any ROM code on Github, only our comments, and a program that merges and splits code and comments.
>
>
> Now for the problems:
>
> - I have no clue if that is legal - forget clean-room builds after that - I doubt that anyone at Apple cares
>
> - a single ROM disassembly is 140MB big - how can we create more manageable parts
>
> - my disassembler is an utter mess (though the created disassembly is beautiful)
>
> - existing comments have to be merged into this system somehow
>
> - new comments must match up with the ROM code somehow, for example by address
>
> - the resulting code can run through an assembler and recreate the ROM (which it currently does!)
>
>
> The disassmbler is here:
> https://github.com/MatthiasWM/dynee5/tree/master/Albert
>
> Some example code is here:
> https://github.com/MatthiasWM/dynee5/blob/master/Albert/NewtonOS/DataAbort.s
>
> Matthias
>
> ----------------------------------------------------------------------
>
> http://newtontalk.net/
More information about the NewtonTalk
mailing list