Omnimaga

Calculator Community => Other Calc-Related Projects and Ideas => TI Z80 => Topic started by: Munchor on April 16, 2011, 06:58:58 pm

Title: Online Z80 Disassembler
Post by: Munchor on April 16, 2011, 06:58:58 pm
After releasing Assemblex IDE (http://ourl.ca/10437), I noticed it's much easier for users to use online tools. So, I decided to create a browser, online (but also available offline) Z80 Assembly Disassembler! The core engine is just like Assemblex's but if you give it a try with huge programs (I tried disassembling zStart 1.1 and it did it in less than a second) you'll notice it's much faster. Mainly because Javascript is faster than Python (also depending on the browser, Chrome's Javascript is the faster).

So, where can I find it?

http://www.davidgom.co.cc/z80.html (http://www.davidgom.co.cc/z80.html)

Right there! Please give it a try, it's online, no downloads! Please give your opinion on it on this topic :D

I also have to say it can't open files for now, but that will be included soon (using PHP). If you want to disassemble files use a Hexadecimal Editor like Hex Baker (http://code.google.com/p/hex-baker/) or XVI32 (http://www.chmaas.handshake.de/delphi/freeware/xvi32/xvi32.htm) and then copy and paste the code there. Thus, you'll see how fast it is disassembling huge files and applications, perhaps even Operating Systems.
Title: Re: Online Z80 Disassembler
Post by: Ashbad on April 16, 2011, 07:00:19 pm
I think that this would actually be a disassembler, since it goes from Hex to mnemonics, but either way, looks nice ;)
Title: Re: Online Z80 Disassembler
Post by: Xeda112358 on April 16, 2011, 07:03:56 pm
I've gotten to give this a try and I must say, I really like this! It is fast and it is actually easier for me to code in this while I am chatting online. I especially like the ease of use because there is nothing to install or download, so you have a respect point from me!

EDIT: Where does it say it is an assembler?
Title: Re: Online Z80 Disassembler
Post by: willrandship on April 16, 2011, 07:08:55 pm
He said it was a dissassembler, ashbad :P unless he saw your post and edited :P

Sounds cool! Hmm, that makes me want an online IDE + an emu :P
Title: Re: Online Z80 Disassembler
Post by: Munchor on April 16, 2011, 07:29:09 pm
I've gotten to give this a try and I must say, I really like this! It is fast and it is actually easier for me to code in this while I am chatting online. I especially like the ease of use because there is nothing to install or download, so you have a respect point from me!

Thanks a lot for the support.

He said it was a dissassembler, ashbad :P unless he saw your post and edited :P

Sounds cool! Hmm, that makes me want an online IDE + an emu :P

I'd like an emulator very much, but it only seems possible in Flash. An Assembler is possible, in fact, I'll try and make one soon.
Title: Re: Online Z80 Disassembler
Post by: Ashbad on April 16, 2011, 07:33:55 pm
oh, that is my bad ;) I'm sorry :P
Title: Re: Online Z80 Disassembler
Post by: Munchor on April 16, 2011, 07:45:06 pm
Update

You no longer need to press 'Disassemble'. You can just type and it will disassemble it in real time. How cool is that?

I coded it but Kerm gave me an idea of how to do it :D

http://www.davidgom.co.cc/z80.html (http://www.davidgom.co.cc/z80.html)

What do you think of this?
Title: Re: Online Z80 Disassembler
Post by: Xeda112358 on April 16, 2011, 07:47:21 pm
Hehe, I love this :D Now it is closer to being like the python version ! I definitely like this... Also, does that mean you don't even need those options anymore?
Title: Re: Online Z80 Disassembler
Post by: Ashbad on April 16, 2011, 07:48:38 pm
wow, that looks quite neat :) great job ;D it's very fast, I noticed -- and plus, no moar button :w00t:
Title: Re: Online Z80 Disassembler
Post by: Munchor on April 16, 2011, 07:51:22 pm
Hehe, I love this :D Now it is closer to being like the python version ! I definitely like this... Also, does that mean you don't even need those options anymore?

I will leave the options.

Update
The spell checking of the textboxes has been disabled so it's not annoying.
Title: Re: Online Z80 Disassembler
Post by: Xeda112358 on April 16, 2011, 07:52:39 pm
Oh, I never had a spell checky thing... Hmm, maybe it is because I am using Firefox?
Title: Re: Online Z80 Disassembler
Post by: willrandship on April 16, 2011, 09:56:52 pm
I think Java would be much better at emulating anything than flash :P

@Xeda, I think it's because FF recognizes that it's not for word input, but IE automatically assumes it is.


What about having it be bidirectional entry, sort of like google translate?
Title: Re: Online Z80 Disassembler
Post by: Munchor on April 16, 2011, 09:58:15 pm
I think Java would be much better at emulating anything than flash :P

@Xeda, I think it's because FF recognizes that it's not for word input, but IE automatically assumes it is.

I forgot about Java Applets, but they're slow.
Title: Re: Online Z80 Disassembler
Post by: Munchor on April 18, 2011, 07:41:33 am
Are there any bugs to report? I've been trying to make it faster and trying to add file reading.
Title: Re: Online Z80 Disassembler
Post by: Deep Toaster on September 03, 2011, 07:21:21 pm
Is this still being worked on? It's really useful.

One thing I would suggest would be to set a timeout after every keypress instead of updating the disassembled code immediately. Doesn't seem to lag much now, but in slower browsers it would.
Title: Re: Online Z80 Disassembler
Post by: thepenguin77 on September 03, 2011, 09:15:27 pm
(I tried disassembling zStart 1.1 and it did it in less than a second)

I may have originally missed this post but :D Sometimes I even code differently based on how a disassembler would see my code. But that's just a weird thing I do.
Title: Re: Online Z80 Disassembler
Post by: Munchor on September 04, 2011, 01:11:00 pm
Deep, if you could give me some indications on how to do that (timer thing), I'd be pleased, as I know you've done that before in Z80 Tables for example.

I may have originally missed this post but :D Sometimes I even code differently based on how a disassembler would see my code. But that's just a weird thing I do.

That's not so common indeed. Don't forget though this is an online disassembler, and it was made for quick stuff, not disassembling OSs and Apps.
Title: Re: Online Z80 Disassembler
Post by: Deep Toaster on September 04, 2011, 10:30:36 pm
First, initialize the counter so you don't get an ERR:UNDEFINED-style exception.
Code: [Select]
d = 0; // Var d now existsNow change the textbox's keyup function to something like
Code: [Select]
clearTimeout(d); // Reset the timeout if it exists
d = setTimeout(onPress, 100); // Set a timeout (timer function) to run onPress 100 ms later
That should do it :)